Float njPow( n, m )
Float n
Float m
n 任意の実数 m 任意の実数(指数部)
nのm乗の値
任意の実数nを任意の実数mでべき乗を求めます。
void main( void ) { Float x = 2.f , y = 4.f Float ans; ans = njPow( x , y ); printf( "ans = %f\n", ans ); } /* Result */ ans : 16.000000
この関数はマクロで実現されています。
njLog() 自然対数を求める njLog10() 対数を求める(底=10)