njPow

前の関数 関数のトップへ 次の関数


べき乗を求めます

書式

#include <Ninja.h>

Float njPow( n1, n2 )

Float n1

Float n2

 

パラメタ

n1   任意の実数

n2   任意の実数

 

戻り値

n1n2乗の値

 

機能

任意の実数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.