SIN(3M) COMMAND REFERENCE SIN(3M)
NAME
sin, cos, tan, asin, acos, atan, atan2 - trigonometric
functions
SYNOPSIS
#include <math.h>
double sin(x)
double x;
double cos(x)
double x;
double tan(x)
double x;
double asin(x)
double x;
double acos(x)
double x;
double atan(x)
double x;
double atan2(x, y)
double x, y;
DESCRIPTION
Sin, cos, and tan return trigonometric functions of radian
arguments. The magnitude of the argument should be checked
by the caller to make sure the result is meaningful.
Asin returns the arc sin of x in the range -pi /2 to pi /2.
Acos returns the arc cosine of x in the range 0 to pi .
Atan returns the arc tangent of x in the range -pi /2 to pi /2.
Atan2 returns the arc tangent of x/y in the range -pi to pi .
FILES
/usr/lib/libm.a Mathematical library functions.
DIAGNOSTICS
Arguments of magnitude greater than 1 cause asin and acos to
return value 0; errno is set to EDOM. The value of tan at
its singular points is a huge number, and errno is set to
ERANGE.
SEE ALSO
intro(3m).
Printed 10/17/86 1
%%index%%
na:72,105;
sy:177,1327;
de:1504,699;
fi:2203,121;
di:2324,411;
se:2735,81;
%%index%%000000000108