GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
SINCOS(3) FreeBSD Library Functions Manual SINCOS(3)

sincos, sincosf, sincosl
sine and cosine functions

Math Library (libm, -lm)

#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);

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.

cos(3), sin(3)

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

March 12, 2011 FreeBSD 13.1-RELEASE

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.