Ninja Library - Mathematical Function

njPow

Returns the power of a number

FORMAT

Float njPow( n, m )
Float n
Float m

PARAMETER

 n  arbitrary real number  
 m  arbitrary real number (exponent part) 

RETURN

Value of n to the m 2nd power

DESCRIPTION

Calculates the value of aritrary real number n raised to the power of arbitrary real number m and returns the value found as the result.

EXAMPLE

void main( void )
{
 Float g = 2.f , y = 4.f
 Float ans;
 
 ans = njPow( x , y );
 printf( "ans = %f\n", ans );
}
ans = 16.000000

REFERENCE

njLog()
njLog10()

njPow
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999