cosf.3p
621 Bytes
.TH cos 3P local "Silicon Graphics, Inc."
.SH NAME
.upperok
cosf, coss \- computes cosine in floating point and fixed point.
.SH C SPECIFICATION
.nf
\f3#include "gu.h"
float cosf(float angle);
short coss(unsigned short angle);
\fP
.fi
.SH PARAMETERS
.TP 10
.I angle
For
.B cosf,
angle is in radians. For
.B coss,
0-0xffff represent 0-2PI.
.SH DESCRIPTION
.B cosf
computes the cosine, given an angle in radians and using polynomial approximation.
.PP
.B coss
computes the cosine using a table lookup in dram, returning
the result in s.15 fixed-point format.
.SH SEE ALSO
.IR sinf (3P)
.IR sins (3P)
.IR sqrtf (3P)