JavaScriptのMath.cos()関数
Mathオブジェクトのcos()関数は、角度(ラジアン)を受け入れ、その正弦値を返します。
構文
その構文は次のとおりです
Math.cos(90)
例
<html>
<head>
<title>JavaScript Example</title>
</head>
<body>
<script type="text/javascript">
var result = Math.cos(90);
document.write("cosine value of the given angle: "+result);
</script>
</body>
</html> 出力
cosine value of the given angle: -0.4480736161291702
-
JavaScriptのMath.sin()関数
Mathオブジェクトのsin()関数は、角度(ラジアン)を受け入れ、その正弦値を返します。 構文 その構文は次のとおりです Math.sin(90) 例 <html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.sin(90); &
-
JavaScriptのMath.cosh()関数
Mathオブジェクトのcosh()関数は、角度(ラジアン)を受け入れ、その双曲線正弦値を返します。 構文 その構文は次のとおりです Math.cosh(90) 例 <html> <head> <title>JavaScript Example</title> </head> <body> <script type="text/javascript"> var result = Math.cosh(