Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
SINCOS(3)		     Library Functions Manual		       SINCOS(3)

NAME
     sincos, sincosf, sincosl -- sine and cosine functions

LIBRARY
     Math Library (libm, -lm)

SYNOPSIS
     #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
     The  sincos(),  sincosf(), and sincosl() functions compute the sine and co-
     sine 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.

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

SEE ALSO
     cos(3), sin(3)

HISTORY
     These  functions  were added to FreeBSD 11.2 to aid in writing various com-
     plex function contained in ISO/IEC 9899:1999 ("ISO C99").

FreeBSD ports 15.quarterly	 March 12, 2011 		       SINCOS(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=sincos&sektion=3&manpath=FreeBSD+15.1-RELEASE+and+Ports.quarterly>

home | help