HP C/iX Library Reference Manual (30026-90004)
314 Chapter5
HP C/iX Library Function Descriptions
sin
sin
Computes a sine value.
Syntax
#include <math.h>
double sin (double
x
);
Parameters
x A real number measured in radians.
Return Value
n The sine of
x
measured in radians.
0 Indicates a complete loss of significance for large values of
x
.ATLOSS error
message is printed on the standard error output; errno is set to ERANGE.
Description
The sin function loses accuracy when its argument is far from zero. For arguments
causing partial loss of significance, a PLOSS error is generated but no message is printed
and errno is set to ERANGE.
Error-handling can be changed by a user-written matherr function.
See Also
cos(), tan(), ANSI C 4.5.2.6, POSIX.1 8.1