BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
katan2 - compute the arc tangent of y/x.
LIBRARY CALL
double katan2(
double y,
double x)
INPUT
- y - numerator component of the tangent given
y/x.
- x - the non-zero denominator component of the tangent given
by y/x.
OUTPUT
none
RETURN VALUE
the double precision arc tangent of the
input arguments.
DESCRIPTION
The katan2 function converts the rectangular
coordinates (x,y) into polar coordinates
and returns the phase component in the range
(-pi/2,pi/2)
This is provided in all POSIX and X/OPEN
compliant C math libraries. Currently
katan2 is simply a macro to atan2 because
Khoros does not run on any machine whose
math library does not include this function.
If Khoros is ported to a machine without this
function then a replacement will be written.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
The second argument x must be non-zero.
MODIFICATION
none
FILES
$BOOTSTRAP/objects/library/klibm/src/klibm.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.