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

NAME


sincos, sincosf, sincosl - combined sine and cosine function

SYNOPSIS


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);


DESCRIPTION


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

RETURN VALUES


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

ATTRIBUTES


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


+----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+----------------------------+-----------------------------+
|Interface Stability | Stable |
+----------------------------+-----------------------------+
|MT-Level | MT-Safe |
+----------------------------+-----------------------------+

SEE ALSO


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

SunOS 5.11 July 12, 2006 SINCOS(3M)

tribblix@gmail.com :: GitHub :: Privacy