Math Library Functions


cos, _ncosf


Syntax

#include <math.h>
double cos(double t)
float  _ncosf(float t)

Arguments

t      radian angle

Return Value

The cosine of t 

Description

Calculates the cosine of the specified argument using the following formula:

cos(t) = (t^0/0!) - (t^2/2!) + (t^4/4!) - (t^6/6!)
	+- ... t^(2n)/(2n)!
cos(t) = 1 - t^2/2 + t^4 * (1/4! + t^2 * (-1/6! + t^2 * (1/8! +.....


Revision History

6/1/99 cosf in the nustd library was changed to _ncosf to conform with this function in N64 OS