|
|
1.1 root 1: .so tmac.ilib
2: .TH TRIG 3.icon "The University of Arizona \- 8/12/84"
3: .SH NAME
4: sin, cos, tan, asin, acos, atan, atan2, dtor, rtod \- trigonometric functions
5: .SH SYNOPSIS
6: .nf
7: .sp
8: \*Msin(x)\fR
9: \*Mcos(x)\fR
10: \*Mtan(x)\fR
11: \*Masin(x)\fR
12: \*Macos(x)\fR
13: \*Matan(x)\fR
14: \*Matan2(x,\*by)\fR
15: \*Mdtor(x)\fR
16: \*Mrtod(x)\fR
17: .fi
18: .SH DESCRIPTION
19: \*Msin\fR, \*Mcos\fR, and \*Mtan\fR return trigonometric functions of
20: radian arguments. The magnitude of the argument should be checked by
21: the caller to make sure that the result is meaningful.
22: .LP
23: \*Masin\fR returns the arc sin in the range \-\(*p/2 to \(*p/2.
24: .LP
25: \*Macos\fR returns the arc cosine in the range 0 to \(*p.
26: .LP
27: \*Matan\fR returns the arc tangent in the range \-\(*p/2 to \(*p/2.
28: .LP
29: \*Matan2\fR returns the tangent of \*Mx\fR/\*My\fR in the range \-\(*p to \(*p.
30: .LP
31: \*Mdtor\fR converts degrees to radians, while \*Mrtod\fR converts radians
32: to degrees.
33: .LP
34: The C math library (\*M\-lm\fR) must be loaded with these functions.
35: .SH DIAGNOSTICS
36: Run-time error 251 occurs if the magnitude of the argument to \*Masin\fR or \*Macos\fR
37: is greater than 1.
38: .LP
39: Run-time error 252 occurs for the singular points of \*Mtan\fR.
40: .SH BUGS
41: The value of \*Mtan\fR for arguments greater than about 2\u\s-2\&31\s0\d
42: is garbage.
43: .SH SEE ALSO
44: sin(3m)
45: .SH AUTHORS
46: Ralph E. Griswold and Stephen B. Wampler
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.