JavaScript に関するリファレンスを提供するサイト
Math.sqrt()は平方根を取得するメソッドです。
Math.sqrt(4);//2
べき乗を取得するにはMath.pow()を利用します。
登録日 : 2012年12月23日 最終更新日 : 2012年12月23日