<doc>
  <legacy_id>1236</legacy_id>
  <name>sin</name>
  <type>function</type>
  <syntax>
    <example>the sin of <i>angleInRadians</i></example>
    <example>sin(<i>angleInRadians</i>)</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Math, Logic, &amp; Dates</category>
  </classification>
  <references>
    <constant tag="pi">pi Constant</constant>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the sine of an angle (in <glossary tag="radian">radians</glossary>).</summary>
  <examples>
    <example>the sin of -pi/2 <code><i>-- returns -1</i></code></example>
    <example>sin(the startAngle of graphic "Pointer")</example>
  </examples>
  <description>
    <p>Use the <b>sin</b> <control_st tag="function">function</control_st> to find the sine of an angle.</p><p/><p><b>Parameters:</b></p><p>The <i>angle</i> is a positive or <glossary tag="negative">negative</glossary> number, or an <glossary tag="expression">expression</glossary> that <glossary tag="evaluate">evaluates</glossary> to a number.</p><p/><p><b>Value:</b></p><p>The <b>sin</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a number between -1 and 1.</p><p/><p><b>Comments:</b></p><p>The <b>sin</b> <control_st tag="function">function</control_st> repeats every 2*pi <glossary tag="radian">radians</glossary>:</p><p><code/>  sin(x) = sin(x + 2 * pi)</p><p>for any value of <code/>x.</p><p/><p>The <b>sin</b> <control_st tag="function">function</control_st> requires its input to be in <glossary tag="radian">radians</glossary>. To provide an angle in <glossary tag="degree">degrees</glossary>, use the following <href tag="dictionary/property/2381.xml">custom function</href>:</p><p/><p><code>  function sinInDegrees angleInDegrees</code></p><p><code/>    return sin(angleInDegrees * pi / 180)</p><p><code>  end sinInDegrees</code></p>
  </description>
</doc>