fix to reeves fix of dgo handling (reset b_active to 1)
[unix-history] / .ref-BSD-3 / usr / man / man3 / sin.3m
CommitLineData
e6817382
BJ
1.TH SIN 3M
2.SH NAME
3sin, cos, tan, asin, acos, atan, atan2 \- trigonometric functions
4.SH SYNOPSIS
5.B #include <math.h>
6.PP
7.B double sin(x)
8.br
9.B double x;
10.PP
11.B double cos(x)
12.br
13.B double x;
14.PP
15.B double asin(x)
16.br
17.B double x;
18.PP
19.B double acos(x)
20.br
21.B double x;
22.PP
23.B double atan(x)
24.br
25.B double x;
26.PP
27.B double atan2(x, y)
28.br
29.B double x, y;
30.SH DESCRIPTION
31.I Sin, cos
32and
33.I tan
34return trigonometric functions of radian arguments.
35The magnitude of the argument should be checked
36by the caller to make sure the result is meaningful.
37.PP
38.I Asin
39returns the arc sin in the range \-\(*p/2 to \(*p/2.
40.PP
41.I Acos
42returns the arc cosine in the range
430 to \(*p.
44.PP
45.I Atan
46returns the arc tangent of
47.I x
48in the range \-\(*p/2 to \(*p/2.
49.PP
50.I Atan2
51returns the arc tangent of
52.I x/y
53in the range \-\(*p to \(*p.
54.SH DIAGNOSTICS
55Arguments of magnitude greater than 1
56cause
57.I asin
58and
59.I acos
60to return value 0;
61.I errno
62is set to EDOM.
63The value of
64.I tan
65at its singular points is a huge number, and
66.I errno
67is set to ERANGE.
68.SH BUGS
69The value of
70.I tan
71for arguments greater than about 2**31 is garbage.