__SINCOSPI(3) Library Functions Manual __SINCOSPI(3)

__sincospisine-pi and cosine-pi function

#include <math.h>

float
__sincospif(float x, float *sinp, float *cosp);

double
__sincospi(double x, double *sinp, double *cosp);

The () function computes the sine and cosine of pi times x (measured in radians) and stores the sine in the memory pointed to by sinp and the cosine in the memory pointed to by cosp.

__sincospi() produces the same results as separate calls to () and ().

__cospi(3), __sinpi(3), __tanpi(3), math(3)

December 15, 2012 macOS 14.6