構文
 
  Math.sin(n)
n
数値
総合 インデックス
メソッド
FirefoxIE

説明

  • サインの値を返すメソッド。
  • 単位はラジアン。

用例

「0.5」のサインの値を書き出す。
<script type="text/javascript">
<!--
document.write(Math.sin(0.5))
//-->
</script>

この用例を実行する