<!-- Converted to DocBook/SGML by Kevin Conder -->
<refentry id="pow">
  <refmeta>
    <refentrytitle>pow</refentrytitle>
  </refmeta>
 
  <refnamediv>
    <refname>pow</refname>

    <refpurpose>
      Computes one argument to the power of another argument.
      <indexterm id="IndexPow"><primary>pow</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
      Computes <emphasis>xarg</emphasis> to the power of <emphasis>kpow</emphasis> (or <emphasis>ipow</emphasis>) and scales the result by <emphasis>inorm</emphasis>.
    </para>

    <para>
    </para>
  </refsect1>

  <refsect1>
    <title>Syntax</title>
    <synopsis>ar <command>pow</command> aarg, kpow [, inorm]</synopsis>

    <synopsis>ir <command>pow</command> iarg, ipow [, inorm]</synopsis>

    <synopsis>kr <command>pow</command> karg, kpow [, inorm]</synopsis>
  </refsect1>
 
  <refsect1>
    <title>Initialization</title>
    <para>
      <emphasis>inorm</emphasis> (optional, default=1) -- The number to divide the result (default to 1). This is especially useful if you are doing powers of a- or k- signals where samples out of range are extremely common!
    </para>
  </refsect1>
 
  <refsect1>
    <title>Performance</title>
    <para>
      <emphasis>aarg</emphasis>, <emphasis>iarg</emphasis>, <emphasis>karg</emphasis> -- the base.
    </para>

    <para>
      <emphasis>ipow</emphasis>, <emphasis>kpow</emphasis> -- the exponent.
    </para>

    <note>
      <para>
        Use <emphasis>&circ;</emphasis> with caution in arithmetical statements, as the precedence may not be correct. New in Csound version 3.493.
      </para>
    </note>
  </refsect1>
 
 <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the pow opcode. It uses the files <ulink url="examples/pow.orc"><citetitle>pow.orc</citetitle></ulink> and <ulink url="examples/pow.sco"><citetitle>pow.sco</citetitle></ulink>.

      <example>
        <title>Example of the pow opcode.</title>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/pow.orc" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>

        <programlisting>
<inlinemediaobject>
            <imageobject>
              <imagedata fileref="examples/pow.sco" format="linespecific">
            </imageobject>
          </inlinemediaobject>
        </programlisting>
      </example>

      Its output should include a line like this:
      <screen>
instr 1:  i1 = 4096.000
      </screen>
    </para>
  </refsect1>
 
  <refsect1>
    <title>Credits</title>
    <para>
      <simplelist>
        <member>Author: &nameparis;</member>
        <member>MIT, Cambridge</member>
        <member>1995</member>
      </simplelist>
    </para>
    <para>Example written by &namekevin;.</para>
  </refsect1>
</refentry>
