<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.math.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.sin.php',
    1 => 'sin',
    2 => 'Seno',
  ),
  'up' => 
  array (
    0 => 'ref.math.php',
    1 => 'Math Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.round.php',
    1 => 'round',
  ),
  'next' => 
  array (
    0 => 'function.sinh.php',
    1 => 'sinh',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/math/functions/sin.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.sin" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">sin</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">sin</span> &mdash; <span class="dc-title">Seno</span></p>

   </div>
   <div class="refsect1 unknown-856" id="refsect1-function.sin-unknown-856">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>sin</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.float.php" class="type float">float</a></span> <code class="parameter">$arg</code></span>): <span class="type"><a href="language.types.float.php" class="type float">float</a></span></div>

    <p class="para rdfs-comment">
     La funzione <span class="function"><strong>sin()</strong></span> restituisce il seno di  <code class="parameter">arg</code>.
     Il parametro  <code class="parameter">arg</code> viene espresso in radianti.
    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio di uso di <span class="function"><strong>sin()</strong></span></strong></p>
      <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">// La precisione dipende dalle direttive di precisione<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">sin</span><span style="color: #007700">(</span><span style="color: #0000BB">deg2rad</span><span style="color: #007700">(</span><span style="color: #0000BB">60</span><span style="color: #007700">));  </span><span style="color: #FF8000">//  0.866025403 ...<br /></span><span style="color: #007700">echo </span><span style="color: #0000BB">sin</span><span style="color: #007700">(</span><span style="color: #0000BB">60</span><span style="color: #007700">);           </span><span style="color: #FF8000">// -0.304810621 ...<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>
    <p class="para">
     Vedere anche:
     <span class="function"><a href="function.asin.php" class="function">asin()</a></span>, 
     <span class="function"><a href="function.cos.php" class="function">cos()</a></span>, 
     <span class="function"><a href="function.tan.php" class="function">tan()</a></span> e 
     <span class="function"><a href="function.deg2rad.php" class="function">deg2rad()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>