sincosl
sincosl is a function provided by some C math libraries that computes both the sine and the cosine of a long double value in a single call. It is designed to improve performance and accuracy by allowing the implementation to share common work, such as argument reduction, between the two trigonometric computations.
Signature and behavior: the typical form is void sincosl(long double x, long double *sinp, long double *cosp);
Rationale and usage: computing both sin and cos in one call can reduce computational effort and improve
Availability and portability: sincosl is not part of the ISO C standard; it is provided as an
Related functions: there are equivalent variants for other floating-point precisions, including sincos (double) and sincosf (float).
See also: sin, cos, sincos (double), sincosf (float), sincosl (long double).