array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.sin.php', 1 => 'sin', ), 'up' => array ( 0 => 'ref.math.php', 1 => 'Fonctions Math', ), 'prev' => array ( 0 => 'function.round.php', 1 => 'round', ), 'next' => array ( 0 => 'function.sinh.php', 1 => 'sinh', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', '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 — Sinus
num
Une valeur, en radians
Le sinus de num
.
Exemple #1 Exemple avec sin()
<?php
// La précision dépend de la directive precision
echo sin(deg2rad(60)); // 0.866025403 ...
echo sin(60); // -0.304810621 ...
?>