array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'function.sin.php', 1 => 'sin', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Math 関数', ), 'prev' => array ( 0 => 'function.round.php', 1 => 'round', ), 'next' => array ( 0 => 'function.sinh.php', 1 => 'sinh', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/math/functions/sin.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
sin — 正弦(サイン)
num
ラジアンで表した値。
num
のサインを返します。
例1 sin() の例
<?php
// 結果の精度は、指定によります。
echo sin(deg2rad(60)); // 0.866025403 ...
echo sin(60); // -0.304810621 ...
?>