]> git.ipfire.org Git - thirdparty/man-pages.git/blame - man3/sincos.3
Change suggested by Fabian Kreutz
[thirdparty/man-pages.git] / man3 / sincos.3
CommitLineData
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
6sincos, 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
19Link with \-lm.
20.SH DESCRIPTION
21Several applications need sine and cosine of the same angle
22.IR x .
23This function computes both at the same time, and stores the results
24via the given pointers.
25.SH "CONFORMING TO"
26This function is a GNU extension.
27.SH "SEE ALSO"
28.BR cos (3),
29.BR sin (3),
30.BR tan (3)