Math.sqrt
平方根を得る
構文
Math.sqrt(x)
引数
x=数値例文
<html> <head> <title>Math.sqrt</title> </head> <body> <!--平方根を得るのサンプル--> <script type="text/javascript"> document.write('0の平方根は'+Math.sqrt(0)+"<br>"); document.write('1の平方根は'+Math.sqrt(1)+"<br>"); document.write('9の平方根は'+Math.sqrt(9)+"<br>"); document.write('0.64の平方根は'+Math.sqrt(0.64)+"<br>"); document.write('-9の平方根は'+Math.sqrt(-9)); </script> </body> </html>
関連記事
- Math.tan
- Math.atan2
- Math.sin
- Math.round
- Math.random
- Math.pow
- Math.min
- Math.max
- Math.log
- Math.floor
- Math.exp
- Math.cos
- Math.ceil
- Math.atan
- Math.asin
- Math.acos
- Math.abs
- Math.SQRT2
- Math.SQRT1_2
- Math.PI
- Math.LOG2E
- Math.LOG10E
- Math.LN2
- Math.LN10
- Math.E
スポンサーリンク