SIN(3M) — MATHEMATICAL FUNCTIONS
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 asin(x)
double x;
double acos(x)
double x;
double atan(x)
double x;
double atan2(y, x)
double x, y;
DESCRIPTION
Sin, cos and tan return trigonometric functions of radian arguments.
Asin returns the arc sin in the range −π/2 to π/2.
Acos returns the arc cosine in the range 0 to π.
Atan returns the arc tangent of x in the range −π/2 to π/2.
Atan2 returns the arc tangent of y/x in the range −π to π.
DIAGNOSTICS
These functions handle exceptional arguments in the spirit of IEEE standard P754 for binary floating point arithmetic. When x is infinity in sin(x), cos(x), or tan(x), or when |x| > 1 in asin(x) or acos(x), the functions return NaN values and errno is set to EDOM.
Sun Release 3.2 — Last change: 19 December 1985