« gmp_random_seed
gmp_rootrem »

gmp_root

(PHP 5 >= 5.6.0, PHP 7, PHP 8)

gmp_root — n乗根の整数部を返す

説明

function gmp_root(GMP|int|string $num, int $nth): GMP

num の nth 乗根を計算し、 その整数部を返します。

パラメータ

num

GMP オブジェクト、int、 あるいは数値として解釈可能な string。 文字列の場合、gmp_init() で基数を自動検出するとき (base に 0 を指定したとき) と同じ方法で解釈されます。

nth

num の正のべき乗根

戻り値

結果の整数部をGMP数として返します。

関連キーワード:
整数   root   解釈   random   seed   rootrem   計算   数値   init   基数   検出   base   方法   べき乗
関連する関数・ページ:
function.gmp-rootrem   function.gmp-cmp   function.gmp-init   gmp.construct   function.gmp-xor   function.gmp-mul