Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: July 2017
 
 

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(5) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Interface Stability
Committed
MT-Level
MT-Safe

See Also

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