Go to main content

man pages section 3: Extended Library Functions, Volume 2

Exit Print View

Updated: Thursday, June 13, 2019
 
 

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
Committed
Availability
system/library/math
MT-Level
MT-Safe

See Also

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