Main index | Section 3 | Options |

Math Library (libm, -lm)

#include <math.h>

The
`sincos()`,
`sincosf()`,
and
`sincosl()`
functions compute the sine and cosine of
x.
Using these functions allows argument reduction to occur only
once instead of twice with individual invocations of
`sin()`
and
`cos()`.
Like
`sin()`
and
`cos()`,
a large magnitude argument may yield a result with little
or no significance.

Upon returning from
`sincos()`,
`sincosf()`,
and
`sincosl()`,
the memory pointed to by
**s*
and
**c*
are assigned the values of sine and cosine, respectively.

These functions were added to
FreeBSD 9.0
to aid in writing various complex function contained in
ISO/IEC 9899:1999 ("ISO C99").

SINCOS (3) | March 12, 2011 |

Main index | Section 3 | Options |

Please direct any comments about this manual page service to Ben Bullock. Privacy policy.

“ | If you have a problem and you think awk(1) is the solution, then you have two problems. | ” |

— David Tilbrook |