File:  [Power 6/32 Unix Tahoe 4.2BSD] / cci / usr / src / man / man3 / sin.3m
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Sun Jul 28 12:24:19 2019 UTC (7 years ago) by root
Branches: bsd, MAIN
CVS tags: v12b, v121, HEAD
Power 6/32 Unix version 1.2b

.TH SIN 3M  "11 December 1984"
.SH NAME
sin, cos, tan, asin, acos, atan, atan2 \- trigonometric functions
.SH SYNOPSIS
.nf
.PP
.B fortran float sin(x)
.B float x;
.PP
.B fortran float cos(x)
.B float x;
.PP
.B fortran float atan(x)
.B float x;
.PP
.B #include <math.h>
.PP
.B double sin(x)
.B double x;
.PP
.B double cos(x)
.B double x;
.PP
.B double asin(x)
.B double x;
.PP
.B double acos(x)
.B double x;
.PP
.B double atan(x)
.B double x;
.PP
.B double atan2(x, y)
.B double x, y;
.fi
.SH DESCRIPTION
.I Sin, cos
and
.I tan
return trigonometric functions of radian arguments.
The magnitude of the argument should be checked
by the caller to make sure the result is meaningful.
.PP
.I Asin
returns the arc sin in the range \-\(*p/2 to \(*p/2.
.PP
.I Acos
returns the arc cosine in the range 0 to \(*p.
.PP
.I Atan
returns the arc tangent of
.I x
in the range \-\(*p/2 to \(*p/2.
.PP
.I Atan2
returns the arc tangent of
.I x/y
in the range \-\(*p to \(*p.
.PP
If the function 
.I sin, cos
or
.I atan
is declared to be
.I fortran
.I float,
the single-precision floating point opcode
.I sinf, cosf
or
.I atanf
will be generated instead of a call to the respective
double-precision function.

.SH DIAGNOSTICS
Arguments of magnitude greater than 1 cause
.I asin
and
.I acos
to return value 0;
.I errno
is set to EDOM.  The value of
.I tan
at its singular points is a huge number, and
.I errno
is set to ERANGE.
.SH BUGS
The value of
.I tan
for arguments greater than about 2**31 is garbage.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.