]>
Commit | Line | Data |
---|---|---|
fea681da MK |
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 | |
4e050476 | 9 | .B #define _GNU_SOURCE |
fea681da MK |
10 | .B #include <math.h> |
11 | .sp | |
12 | .BI "void sincos(double " x ", double *" sin ", double *" cos ); | |
d39541ec | 13 | .br |
fea681da | 14 | .BI "void sincosf(float " x ", float *" sin ", float *" cos ); |
d39541ec | 15 | .br |
fea681da MK |
16 | .BI "void sincosl(long double " x ", long double *" sin ", long double *" cos ); |
17 | .fi | |
18 | .sp | |
19 | Link with \-lm. | |
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) |