array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.sin.php', 1 => 'sin', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Math İşlevleri', ), 'prev' => array ( 0 => 'function.round.php', 1 => 'round', ), 'next' => array ( 0 => 'function.sinh.php', 1 => 'sinh', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', '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 — Sine
sin() returns the sine of the num
parameter. The num
parameter is in radians.
num
A value in radians
The sine of num
Örnek 1 sin() example
<?php
// Precision depends on your precision directive
echo sin(deg2rad(60)); // 0.866025403 ...
echo sin(60); // -0.304810621 ...
?>