sqrt()

数の平方根を計算します。

数の平方根は、それ自身を掛けると元の数になる値です。例えば、sqrt(9)は3を返します。 なぜなら3 × 3 = 9だからです。sqrt()は常に正の値を返します。sqrt()sqrt(-9)のような負の引数では機能しません。

実例

シンタックス

sqrt(n)

パラメーター

n
Number:

平方根を求める非負の数。

リターン

Number: 数の平方根。
This page is generated from the comments in src/math/calculation.js . Please feel free to edit it and submit a pull request!

関連するリファレンス