Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Four quadrant inverse tangent function
04-03-2016, 07:55 PM (This post was last modified: 04-03-2016 08:13 PM by cdeaglejr.)
Post: #1
Four quadrant inverse tangent function
This HP Prime function calculates an angle between 0 and 2 pi radians using the sin and cosine of the angle provided by the user.

It is called ATAN3 because FORTRAN has a function called ATAN2 that calculates an angle between plus and minus pi.

The syntax of this function is a follows;

EXPORT ATAN3(a, b)

// four quadrant inverse tangent

// input

// a = sine of angle
// b = cosine of angle

// output

// 0 =< angle <= 2 pi

////////////////////


Attached File(s)
.zip  ATAN3.zip (Size: 499 bytes / Downloads: 5)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)