njPow
べき乗を求めます。
書式
#include <Ninja.h>
Float njPow( n1, n2 )
Float n1
Float n2
パラメタ
n1 任意の実数
n2 任意の実数
戻り値
n1のn2乗の値
機能
任意の実数n1を任意の実数n2で冪乗を求め、結果を戻り値として返します。
例
void main( void )
{Float x = 2.f , y = 4.f
Float ans;
ans = njPow( x , y );
printf( "ans = %f\n", ans );}
ans = 16.000000
備考
copyright (c) sega enterprises, ltd. SYSTEM R&D DEPT. 1997 all rights reserved.