Guardian C Library Calls Reference Manual
Reference to Library Calls
Guardian TNS C Library Calls Reference Manual—128833 3-167
sin
•
The ANSI defined signals SIGABRT, SIGINT, and SIGTERM can only be
generated by an explicit call to the raise function.
The condition specified by each of these signals is:
sin
The sin function computes the sine of its argument.
expr
specifies an angle in radians.
Return Value
is the sine of expr.
Example
This example prints “The sine is 1.000000.”:
#include <mathh>
#include <stdioh>
int main(void)
{
double x, r;
x = 1.5708;
r = sin(x);
printf("The sine is %f.", r);
}
SIGABRT
abnormal termination, such as is initiated by the abort function
SIGINT
receipt of an interactive attention signal
SIGTERM
a termination request sent to the program
#include <mathh>
double sin(double expr);