Four quadrant inverse tangent function

04032016, 07:55 PM
(This post was last modified: 04032016 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 //////////////////// 

« Next Oldest  Next Newest »

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