Math Library Functions


sin, _nsinf


Syntax

#include <math.h>
double sin(double t);
float  sinf(float t);

Arguments

t      radian angle

Return Value

The sine of t 

Description

Calculates the sine of t using the following formula:

sin(t) = (t^1/1!) - (t^3/3!) + (t^5/5!) - (t^7/7!)
	+- ... t^(2n+1)/(2n+1)!
sin(t) = t (1 + t^2 * (-1/3! + t^2 * (1/5! + t^2 * (-1/7! + .... )))


Revision History

6/1/99 Since this function already existed in the N64 OS, changed sinf in nustd library to _nsinf