Math library
Because these routines may be quite essential in some occasions, we have
also provided for a math library. Generally speaking, we have copied the
routines from the ANSI library. However, these variants have no error trapping
built in, as this is normally done using global variables. Also, we habe only
included the variants which uses doubles, the float type
is not supported by syslib.
These routines have no error trapping mechanism built in, but they will
return special symbols when an error occurs :
- overflow
- return HUGE_VAL
- underflow
- return 0
- zero divide
- return infinity (which is NaN)
- domain errors
- return HUGE_VAL or -HUGE_VAL
- double acos(double)
- double asin(double)
- double atan(double)
- double atan2(double, double)
- double ceil(double)
- double cos(double)
- double cosh(double)
- double exp(double)
- double fabs(double)
- double floor(double)
- double fmod(double, double)
- double frexp(double, int *)
- double ldexp(double, int)
- double log(double)
- double log10(double)
- double modf(double, double *)
- double pow(double, double)
- double sin(double)
- double sinh(double)
- double sqrt(double)
- double tan(double)
- double tanh(double)
- int isNaN(double x) : determine whether x is a NaN (not a number).
PROGS, Professional & Graphical Software
last edited February 9, 1996