4.3BSD/usr/contrib/icon/man/man3/trig.3

Compare this file to the similar file:
Show the results in this format:

.so tmac.ilib
.TH TRIG 3.icon "The University of Arizona \- 8/12/84"
.SH NAME
sin, cos, tan, asin, acos, atan, atan2, dtor, rtod \- trigonometric functions
.SH SYNOPSIS
.nf
.sp
\*Msin(x)\fR
\*Mcos(x)\fR
\*Mtan(x)\fR
\*Masin(x)\fR
\*Macos(x)\fR
\*Matan(x)\fR
\*Matan2(x,\*by)\fR
\*Mdtor(x)\fR
\*Mrtod(x)\fR
.fi
.SH DESCRIPTION
\*Msin\fR, \*Mcos\fR, and \*Mtan\fR return trigonometric functions of
radian arguments. The magnitude of the argument should be checked by
the caller to make sure that the result is meaningful.
.LP
\*Masin\fR returns the arc sin in the range \-\(*p/2 to \(*p/2.
.LP
\*Macos\fR returns the arc cosine in the range 0 to \(*p.
.LP
\*Matan\fR returns the arc tangent in the range \-\(*p/2 to \(*p/2.
.LP
\*Matan2\fR returns the tangent of \*Mx\fR/\*My\fR in the range \-\(*p to \(*p.
.LP
\*Mdtor\fR converts degrees to radians, while \*Mrtod\fR converts radians
to degrees.
.LP
The C math library (\*M\-lm\fR)  must be loaded with these functions.
.SH DIAGNOSTICS
Run-time error 251 occurs if the magnitude of the argument to \*Masin\fR or \*Macos\fR
is greater than 1.
.LP
Run-time error 252 occurs for the singular points of \*Mtan\fR.
.SH BUGS
The value of \*Mtan\fR for arguments greater than about 2\u\s-2\&31\s0\d
is garbage.
.SH SEE ALSO
sin(3m)
.SH AUTHORS
Ralph E. Griswold and Stephen B. Wampler