sins sins (function)

sinf, sins

Computes the sine of an angle in either floating point or fixed point


#include "gu.h"     /* gu.h */
float sinf(float angle);
float sins(unsigned short angle)


angle is the angle in radians. 0-0xffff(0-2 PI) for sins.


sinf uses polynomial approximation to compute the sine in radians. It computes the sine using a table lookup in DRAM, returning the result in s.15 fixed-point format.

See Also

coss, cosf, and sqrtf

Revision History

1999/04/30 Changed Format