SINCOS(3M) Mathematical Library Functions SINCOS(3M)

sincos, sincosf, sincosl - combined sine and cosine function

c99 [ flag... ] file... -lm [ library... ]
#include <math.h>
void sincos(double x, double *s, double *c);

void sincosf(float x, float *s, float *c);

void sincosl(long double x, long double *s, long double *c);

These functions compute the sine and cosine of the first argument x, measured in radians.

Upon successful completion, these functions return the sine of x in *s and cosine of x in *c.

See attributes(7) for descriptions of the following attributes:

Interface Stability Stable
MT-Level MT-Safe

math.h(3HEAD), cos(3M), sin(3M), attributes(7)

July 12, 2006 SunOS 5.11