Results of 1 - 10 of about 28 for sqrt (0.001 sec.)
- sqrt — 平方根 | PHP 8.3 13944
- sqrt (PHP 4, PHP 5, PHP 7, PHP 8) sqrt — 平方根 説明 function sqrt ( float $num ): float num の平方根を返します。 パラメータ num 処理する引数。 戻り値 num の平方根を返します。 負の数を指定した場合は、特別な値 NAN を返します。 例 例1 sqrt()
... の例 <?php // 小数点以下の精度は、precision ディレクティブの設定に依存します echo sqrt ( 9 ), PHP_EOL ; // 3 echo sqrt ( 10 ), PHP_EOL ; // 3.16227766 ... ?> 参考 pow() - 指数表現 M_SQRTPI - sqrt(pi) M_2_SQRTP ... I - 2/sqrt(pi) M_SQRT2 - sqrt(2) M_SQRT3 - sqrt(3) M_SQRT1_2 - 1/sqrt(2) 他のマニュアルの関連ページ Linux JM sqrt(3) Linux JM sqrtf(3 ... ) Linux JM sqrtl(3) Linux JM erfl(3) Linux JM erff(3) Linux JM erf(3) ...
-
https://man.mtool.work/php/8.3/function.sqrt.html
- gmp_sqrt — 平方根を計算する | PHP 8.3 11699
- gmp_sqrt (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) gmp_sqrt — 平方根を計算する 説明 function gmp_sqrt ( GMP | int | string $num ): GMP num の平方根を計算します。 パラメータ num GMP オブジェクト、 int 、 あるいは数値として解釈可能な string 。 文
... um が負の場合、 ValueError がスローされます。 PHP 8.0.0 より前のバージョンでは、 E_WARNING が発生していました。 例 例1 gmp_sqrt() の例 <?php $sqrt1 = gmp_sqrt ( "9" ); $sqrt2 = gmp_sqrt ( "7" ); $sqrt3 = gmp_sqrt ( "1524157875019052100" ); echo gmp_s ... trval ( $sqrt1 ) . "\n" ; echo gmp_strval ( $sqrt2 ) . "\n" ; echo gmp_strval ( $sqrt3 ) . "\n" ; ?> 上の例の出力は以下となります。 3 2 ... 1234567890 他のマニュアルの関連ページ Linux JM sqrt(3) Linux JM sqrtf(3) Linux JM sqrtl(3) Python cmath Linux JM erf(3) Linux JM erfl(3) ...
-
https://man.mtool.work/php/8.3/function.gmp-sqrt.html
- BcMath\Number::sqrt — 任意精度数値の平方根を取得する | PHP 8.3 10978
- BcMath\Number::sqrt (PHP 8 >= 8.4.0) BcMath\Number::sqrt — 任意精度数値の平方根を取得する 説明 public function BcMath\Number::sqrt ( ? int $scale = null ): BcMath\Number $this の平方根を返します。 パラメータ scale 計算結果オブジェクトの BcM
... である場合 scale が範囲外の値である場合 結果オブジェクトの BcMath\Number::scale が範囲外の値である場合 例 例1 BcMath\Number::sqrt() の例 <?php var_dump ( new BcMath\Number ( '2' )-> sqrt (), new BcMath\Number ( '2' )-> sqrt ( 3 ), new BcMath\Number ( ' ... 4' )-> sqrt (), new BcMath\Number ( '4' )-> sqrt ( 3 ), ); ?> 上の例の出力は以下となります。 object(BcMath\Number)#2 (2) { ["value"]=> ... string(1) "2" ["scale"]=> int(0) } object(BcMath\Number)#5 (2) { ["value"]=> string(5) "2.000" ["scale"]=> int(3) } 参考 bcsqrt() - 任意精度数値の平方根を取得する BcMath\Number::div() - 任意精度数値の除算を行う BcMath\Number::pow() - 任意精度数値をべ ...
-
https://man.mtool.work/php/8.3/bcmath-number.sqrt.html
- trader_sqrt — Vector Square Root | PHP 8.3 10290
- trader_sqrt (PECL trader >= 0.2.0) trader_sqrt — Vector Square Root 説明 function trader_sqrt ( array $real ): array Calculates the square root of each value in real and returns the resulting array. パラメータ real 実数値の配列。 戻り値 Ret
... urns an array with calculated data or false on failure. 他のマニュアルの関連ページ Linux JM sqrt(3) Linux JM sqrtl(3) Linux JM sqrtf(3) Docker docker info Python cmath Linux JM erfl(3) ...
-
https://man.mtool.work/php/8.3/function.trader-sqrt.html
- 定義済み定数 | PHP 8.3 9930
- 定義済み定数 以下の定数は、PHP コアに含まれており、常に利用可能です。 数学関連の定数 M_PI ( float ) π (pi) の近似値 ( 3.14159265358979323846 ). M_E ( float ) Euler数 e の近似値 ( 2.7182818284590452354 ). M_LOG2E ( float ) log 2 (e) の近似値
... 2 ). M_1_PI ( float ) 1/π の近似値 ( 0.31830988618379067154 ). M_2_PI ( float ) 2/π の近似値 ( 0.63661977236758134308 ). M_SQRTPI ( float ) sqrt(π) の近似値 ( 1.77245385090551602729 ). M_2_SQRTPI ( float ) 2/sqrt(π) の近似値 ( 1.12837916709551257390 ... ). M_SQRT2 ( float ) sqrt(2) の近似値 ( 1.41421356237309504880 ). M_SQRT3 ( float ) sqrt(3) の近似値 ( 1.73205080756887729352 ). M_S ... QRT1_2 ( float ) 1/sqrt(2) の近似値 ( 0.70710678118654752440 ). M_LNPI ( float ) ln(π) の近似値 ( 1.14472988584940017414 ). M_EULER ( float ) Eule ...
-
https://man.mtool.work/php/8.3/math.constants.html
- is_nan — 浮動小数点数の値が、非数かどうかを調べる | PHP 8.3 8422
- is_nan (PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8) is_nan — 浮動小数点数の値が、非数かどうかを調べる 説明 function is_nan ( float $num ): bool 指定された num が、 NAN ( Not A Number ) であるかどうかを返します。 数学的に未定義な演算が行われると、
... NAN が返されます。 たとえば関数に渡されるパラメータに、範囲外の値が渡されたときが該当します。 平方根( sqrt() ) は、正の数値の場合にのみ定義されるので、負の数を渡すと結果は NAN になります。 NAN が返される他の例としては、 INF の値を ... t の値。 戻り値 num が NAN の場合、 true を返します。そうでない場合、 false を返します。 例 例1 is_nan() の例 <?php $nan = sqrt (- 1 ); var_dump ( $nan , is_nan ( $nan )); ?> 上の例の出力は以下となります。 float(NAN) bool(true) 参考 is_finite() - 浮動 ... であるかどうかを調べる is_infinite() - 浮動小数点数の値が、無限大であるかどうかを調べる 他のマニュアルの関連ページ Linux JM sqrt(3) Linux JM seq(1) Python stdtypes Linux JM isinf(3) Linux JM isnan(3) Linux JM isnormal(3) ...
-
https://man.mtool.work/php/8.3/function.is-nan.html
- create_function — 文字列のコードを評価し、動的に関数を作成する | PHP 8.3 8160
- create_function (PHP 4 >= 4.0.1, PHP 5, PHP 7) create_function — 文字列のコードを評価し、動的に関数を作成する 警告 この関数は PHP 7.2.0 で 非推奨 になり、PHP 8.0.0 で 削除 されました。この関数に頼らないことを強く推奨します。 説明 function c
... unction ( '$x,$y' , 'return "some trig: ".(sin($x) + $x*cos($y));' ), create_function ( '$x,$y' , 'return "a hypotenuse: ".sqrt($x*$x + $y*$y);' ), create_function ( '$a,$b' , 'if ($a >=0) {return "b*a^2 = ".$b*sqrt($a);} else {return false;}' ), cre ... ion( $x , $y ) { return "some trig: " .( sin ( $x ) + $x * cos ( $y )); }, function( $x , $y ) { return "a hypotenuse: " . sqrt ( $x * $x + $y * $y ); }, function( $a , $b ) { if ( $a >= 0 ) {return "b*a^2 = " . $b * sqrt ( $a );} else {return false ... hing [1] => a big string [2] => larger [3] => small ) 参考 無名関数 他のマニュアルの関連ページ Linux JM strlen(3) Linux JM sqrt(3) Linux JM exit(2) Linux JM _exit(2) Linux JM _Exit(2) Linux JM look(1) ...
-
https://man.mtool.work/php/8.3/function.create-function.html
- BcMath\Number クラス | PHP 8.3 8062
- BcMath\Number クラス (PHP 8 >= 8.4.0) はじめに 任意精度数値のクラスです。 このオブジェクトは、オーバーロードされた 算術演算子 , 比較演算子 をサポートしています。 注意 : このクラスは、 php.ini で設定された bcmath.scale INI ディレクティブの影
... RoundingMode $mode = RoundingMode::HalfAwayFromZero ): BcMath\Number public function __serialize (): array public function sqrt ( ? int $scale = null ): BcMath\Number public function sub ( BcMath\Number | string | int $num , ? int $scale = null ): Bc ... ber::round — 任意精度数値を丸める BcMath\Number::__serialize — BcMath\Number オブジェクトをシリアライズする BcMath\Number::sqrt — 任意精度数値の平方根を取得する BcMath\Number::sub — 任意精度数値の減算を行う BcMath\Number::__toString — BcMath\Number オ ... ata 引数を BcMath\Number オブジェクトとして復元する 他のマニュアルの関連ページ Linux JM floor(3) Linux JM ceil(3) Linux JM sqrt(3) Linux JM round(3) Python math Linux JM dc(1) ...
-
https://man.mtool.work/php/8.3/class.bcmath-number.html
- gmp_perfect_square — 平方数かどうかを調べる | PHP 8.3 8062
- gmp_perfect_square (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) gmp_perfect_square — 平方数かどうかを調べる 説明 function gmp_perfect_square ( GMP | int | string $num ): bool その数が平方数であるかどうかを調べます。 パラメータ num 平方数かどうかを
... ?> 上の例の出力は以下となります。 bool(true) bool(false) bool(true) 参考 gmp_perfect_power() - 累乗数かどうかを調べる gmp_sqrt() - 平方根を計算する gmp_sqrtrem() - 余りつきの平方根 他のマニュアルの関連ページ Linux JM sqrtl(3) Linux JM sqrtf(3) Linux ... JM sqrt(3) Python argparse ...
-
https://man.mtool.work/php/8.3/function.gmp-perfect-square.html
- gmp_sqrtrem — 余りつきの平方根 | PHP 8.3 7947
- gmp_sqrtrem (PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8) gmp_sqrtrem — 余りつきの平方根 説明 function gmp_sqrtrem ( GMP | int | string $num ): array ある数の平方根を余りつきで計算します。 パラメータ num 平方根を計算したい数。 GMP オブジェクト、 in
... で基数を自動検出するとき ( base に 0 を指定したとき) と同じ方法で解釈されます。 戻り値 最初の要素が num の整数平方根 ( gmp_sqrt() も参照ください)、2 番目の要素が余り (すなわち、 num と最初の要素の 2 乗の差) であるような配列を返します。 エラー / 例外 ... um が負の場合、 ValueError がスローされます。 PHP 8.0.0 より前のバージョンでは、 E_WARNING が発生していました。 例 例1 gmp_sqrtrem() の例 <?php list( $sqrt1 , $sqrt1rem ) = gmp_sqrtrem ( "9" ); list( $sqrt2 , $sqrt2rem ) = gmp_sqrtrem ( "7" ); list( ... $sqrt3 , $sqrt3rem ) = gmp_sqrtrem ( "1048576" ); echo gmp_strval ( $sqrt1 ) . ", " . gmp_strval ( $sqrt1rem ) . "\n" ; echo gmp ...
-
https://man.mtool.work/php/8.3/function.gmp-sqrtrem.html