きったんの頭ん中☆
JavaScript 数学関数
関数
- Math.random()
- 0以上、1未満の乱数:
- Math.ceil(x)
- 繰り上げ: x =
- Math.floor(x)
- 繰り下げ: x =
- Math.round(x)
- 四捨五入: [x] =
- Math.abs(x)
- 絶対値: |x| =
- Math.max(x, y)
- max{x, y} =
- Math.min(x, y)
- min{x, y} =
- Math.pow(x, y)
- xy =
- Math.sqrt(x)
- √x =
- Math.sin(x)
- sin x =
- Math.cos(x)
- cos x =
- Math.tan(x)
- tan x =
- Math.asin(x)
- sin-1 x =
- Math.acos(x)
- cos-1 x =
- Math.atan(x)
- tan-1 x =
- Math.atan2(y, x)
- x,y座標の角度: arg (x, y) =
- Math.exp(x)
- ex =
- Math.log(x)
- loge x =
定数
- Math.E
- e =
- Math.PI
- π =
- Math.SQRT2
- √2 =
- Math.SQRT1_2
- √½ =
- Math.LN2
- loge 2 =
- Math.LN10
- loge 10 =
- Math.LOG2E
- log2 e =
- Math.LOG10E
- log10 e =