<ppdoc>
<copyright>
    Copyright (c) 2001 by Addison Wesley Longman.  This
    material may be distributed only subject to the terms and
    conditions set forth in the Open Publication License, v1.0 or
    later (the latest version is presently available at
    http://www.opencontent.org/openpub/).
</copyright>
<class name="Math" type="module" ref="xref-000001">
<p/>
  The <modulename>Math</modulename> module contains module functions for basic
  trigonometric and transcendental functions.    
<p/>
  <constants>
<tr>
  <td>
  <constant>
       <constname>E</constname>
       <constval>2.718281828</constval>
       <constdesc>Value of e (base of natural
    logarithms)</constdesc>
     </constant>
<p/>
  <constant>
       <constname>PI</constname>
       <constval>3.141592654</constval>
       <constdesc>Value of PI</constdesc>
     </constant>
</td>
</tr>
</constants>
<p/>
  <methods type="class">
<p/>
        <method name="atan2" ref="atan2">
      <callseq>
        Math.atan2( <obj>y, x</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Computes the arc tangent given <obj>y</obj> and <obj>x</obj>. Returns -PI..PI.
<p/>
      </desc>
    </method>
<p/>
        <method name="cos" ref="cos">
      <callseq>
        Math.cos( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Computes the cosine of <obj>aNumeric</obj> (expressed 
      in radians).
      Returns -1..1.
<p/>
      </desc>
    </method>
<p/>
        <method name="exp" ref="exp">
      <callseq>
        Math.exp( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns e raised to the power of <obj>aNumeric</obj>.
<p/>
      </desc>
    </method>
<p/>
        <method name="frexp" ref="frexp">
      <callseq>
        Math.frexp( <obj>aNumeric</obj> )
        <returns><obj>anArray</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns a two-element array ([<obj>aFloat, aFixnum</obj>]) containing
      the normalized fraction and exponent of <obj>aNumeric</obj>.
<p/>
      </desc>
    </method>
<p/>
        <method name="ldexp" ref="ldexp">
      <callseq>
        Math.ldexp( <obj>aFloat</obj>, <obj>anInteger</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns the value of <obj>aFloat</obj> *2<sup><obj>anInteger</obj></sup>.
<p/>
      </desc>
    </method>
<p/>
        <method name="log" ref="log">
      <callseq>
        Math.log( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns the natural logarithm of <obj>aNumeric</obj>.
<p/>
      </desc>
    </method>
<p/>
        <method name="log10" ref="log10">
      <callseq>
        Math.log10( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns the base 10 logarithm of <obj>aNumeric</obj>.
<p/>
      </desc>
    </method>
<p/>
        <method name="sin" ref="sin">
      <callseq>
        Math.sin( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Computes the sine of <obj>aNumeric</obj> (expressed in 
      radians). Returns -1..1.
<p/>
      </desc>
    </method>
<p/>
        <method name="sqrt" ref="sqrt">
      <callseq>
        Math.sqrt( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns the non-negative square root of <obj>aNumeric</obj>.
      Raises <exception>ArgError</exception> if <obj>aNumeric</obj> is less than zero.
<p/>
      </desc>
    </method>
<p/>
        <method name="tan" ref="tan">
      <callseq>
        Math.tan( <obj>aNumeric</obj> )
        <returns><obj>aFloat</obj></returns>
      </callseq>
      <desc>
<p/>
      Returns the tangent of <obj>aNumeric</obj> (expressed in radians).
<p/>
      </desc>
    </method>
<p/>
  </methods>
<p/>
</class>
</ppdoc>
