gmp_rootrem

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

gmp_rootremn乗根の整数部分と小数部分を返す

説明

gmp_rootrem(GMP|int|string $num, int $nth): array

numnth 乗根を計算し、 整数部分と小数部分を返します。

パラメータ

num

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

nth

num の正のn乗根

戻り値

ふたつの要素の配列を返します。 最初の要素はn乗根の整数部分、ふたつめの要素は小数部分です。 両方ともGMP数として表現されます。

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top