home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS - Coast to Coast
/
simteldosarchivecoasttocoast2.iso
/
calculat
/
sm30a.zip
/
ATAN2.(X)
< prev
next >
Wrap
Text File
|
1993-10-16
|
273b
|
10 lines
# atan2(x,y) gives the radian angle of (x,y).
# atan2(x,y) = sign(y) pi/2 if x=0
# = atan(y/x) if x>0
# = atan(y/x)+pi if x<0 and y>=0
# = atan(y/x)-pi if x<0 and y<0
# So its value is -pi < atan2(x,y) <= pi.
# See also: atan.
atan2(0,0) := undefined