sin, cos, tan, asin, acos, atan, atan2 \- trigonometric functions
return trigonometric functions of radian arguments.
returns the arc sin in the range \-\(*p/2 to \(*p/2.
returns the arc cosine in the range 0 to \(*p.
returns the arc tangent of
in the range \-\(*p/2 to \(*p/2.
.I sign(y)*(\(*p \- atan(|y/x|))
intro(3M), hypot(3M), sqrt(3M)
Arguments of magnitude greater than 1 cause
to return the reserved operand on the VAX;
on the VAX despite that previously
may have generated an error message.
The reasons for assigning a value to
Any program that already tests whether
will be indifferent to whether
to be invalid is dubious because the consequence of that
invalidity will vary from one computer system to another.
is conversion between rectangular (\fIx, y\fR) and polar
coordinates that must satisfy
Then mapping (\fIx\fR = \fI0\fR, \fIy\fR = \fI0\fR) to
without fuss saves a programmer from nuisance tests.
the conversion should be effected by computing
\fIhypot\fR(\fIx\fR,\fIy\fR) ... :=
\fIsqrt\fR(\fIx**2\fR+\fIy**2\fR)
\fIsqrt\fR(\fIx\u\s82\s10\d\fR+\fIy\u\s82\s10\d\fR)
On a machine that conforms to IEEE
the foregoing conversion has to cope with signed
For that purpose the formula above is compatible
.I 2\(**atan(y/(r\fR+\fIx))
is infinite take limits to get a multiple of
Robert P. Corbett, W. Kahan, Stuart McDonald, Kwok\-Choi Ng