BOOTSTRAP (klibm) functions


LIBRARY ROUTINE

khypot - compute the euclidean distance from the origin of the arguments.

LIBRARY CALL

double khypot(
double x,
double y)

INPUT

OUTPUT

none

RETURN VALUE

returns the double precision euclidean distance from (0,0) to (x,y).

DESCRIPTION

The khypot function computes the Euclidean distance from (0,0) to (x,y). This function computes the square root of the sum of squares of the double precision input arguments x and y, giving the return value ` sqrt(x*x + y*y)

khypot is not a POSIX function, but is implemented in BSD math libraries. khypot is simply a macro to hypot 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

none

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.