BOOTSTRAP (klibm) functions
LIBRARY ROUTINE
ksign - evaluate sign function.
LIBRARY CALL
double ksign (
double x)
INPUT
- x - input argument to evaluate
OUTPUT
none
RETURN VALUE
-1 if the input argument is negative,
0 if the input argument is 0, and 1 if the input
argument is positive
DESCRIPTION
The ksign function evaluates the sign function at the value
of the double precision input argument. The result is
-1 if the argument is negative, 0 if
the argument is 0, and 1 if the argument
is positive.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
none
MODIFICATION
Converted from vsign() in Khoros 1.0 (JW)
FILES
$BOOTSTRAP/objects/library/klibm/src/extensions.c
SEE ALSO
klibm(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.