home *** CD-ROM | disk | FTP | other *** search
/ Simtel MSDOS - Coast to Coast / simteldosarchivecoasttocoast2.iso / calculat / sm30a.zip / ATAN2.(X) < prev    next >
Text File  |  1993-10-16  |  273b  |  10 lines

  1. #    atan2(x,y) gives the radian angle of (x,y).
  2. #    atan2(x,y)     = sign(y) pi/2        if x=0
  3. #            = atan(y/x)        if x>0
  4. #            = atan(y/x)+pi        if x<0 and y>=0
  5. #            = atan(y/x)-pi        if x<0 and y<0
  6. #    So its value is -pi < atan2(x,y) <= pi.
  7. # See also: atan.
  8.  
  9. atan2(0,0) := undefined
  10.