xref: /csrg-svn/lib/libm/common_source/sin.3 (revision 21074)
SIN 3M "8 May 1985"
C 4
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(y, x) double y, x;

DESCRIPTION
Sin, cos and tan return trigonometric functions of radian arguments.

Asin returns the arc sin in the range -\(*p/2 to \(*p/2.

Acos returns the arc cosine in the range 0 to \(*p.

Atan returns the arc tangent of x in the range -\(*p/2 to \(*p/2.

Atan2 returns atan(y/x) if x > 0,

sign(y)*(\(*p - atan(|y/x|)) if x < 0,

zero if x = y = 0 and

sign(y)*\(*p/2 if x = 0 but y not equal to 0.

SEE ALSO
intro(3M)
DIAGNOSTICS
Arguments of magnitude greater than 1 cause asin and acos to return the reserved operand on the VAX; errno is set to EDOM.
AUTHOR
Robert P. Corbett, W. Kahan, Stuart McDonald, Kwok-Choi Ng