]> git.ipfire.org Git - thirdparty/man-pages.git/blob - man3/sincos.3
ffix
[thirdparty/man-pages.git] / man3 / sincos.3
1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" Distributed under GPL, 2002-07-27 Walter Harms
3 .\"
4 .TH SINCOS 3 2004-10-05 "GNU" "Linux Programmer's Manual"
5 .SH NAME
6 sincos, sincosf, sincosl \- calculate sin and cos simultaneously
7 .SH SYNOPSIS
8 .nf
9 .B #define _GNU_SOURCE
10 .B #include <math.h>
11 .sp
12 .BI "void sincos(double " x ", double *" sin ", double *" cos );
13 .br
14 .BI "void sincosf(float " x ", float *" sin ", float *" cos );
15 .br
16 .BI "void sincosl(long double " x ", long double *" sin ", long double *" cos );
17 .fi
18 .sp
19 Link with \fI\-lm\fP.
20 .SH DESCRIPTION
21 Several applications need sine and cosine of the same angle
22 .IR x .
23 This function computes both at the same time, and stores the results
24 via the given pointers.
25 .SH "CONFORMING TO"
26 This function is a GNU extension.
27 .SH "SEE ALSO"
28 .BR cos (3),
29 .BR sin (3),
30 .BR tan (3),
31 .BR feature_test_macros (7)