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

    <refpurpose>
      Returns e raised to the x-th power.
      <indexterm id="IndexExp"><primary>exp</primary></indexterm>
    </refpurpose>
  </refnamediv>
 
  <refsect1>
    <title>Description</title>
    <para>
       Returns e raised to the <emphasis>x</emphasis>th power.
    </para>
  </refsect1>
 
  <refsect1>
    <title>Syntax</title>
    <synopsis><command>exp</command>(x) (no rate restriction)</synopsis>

    <para>
      where the argument within the parentheses may be an expression. Value converters perform arithmetic translation from units of one kind to units of another. The result can then be a term in a further expression.
    </para>
  </refsect1>

  <refsect1>
    <title>Examples</title>
    <para>
      Here is an example of the exp opcode. It uses the files <ulink url="examples/exp.orc"><citetitle>exp.orc</citetitle></ulink> and <ulink url="examples/exp.sco"><citetitle>exp.sco</citetitle></ulink>.

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

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

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

      Its output should include a line like this:
      <screen>
instr 1:  i1 = 2980.958
      </screen>
    </para>
  </refsect1>

  <refsect1>
    <title>See Also</title>
    <para>
      <link linkend="abs"><citetitle>abs</citetitle></link>,
      <link linkend="frac"><citetitle>frac</citetitle></link>,
      <link linkend="int"><citetitle>int</citetitle></link>,
      <link linkend="log"><citetitle>log</citetitle></link>,
      <link linkend="log10"><citetitle>log10</citetitle></link>,
      <link linkend="opi"><citetitle>i</citetitle></link>,
      <link linkend="sqrt"><citetitle>sqrt</citetitle></link>
    </para>
  </refsect1>

  <refsect1>
    <title>Credits</title>
    <para>Example written by &namekevin;.</para>
    <para>New in version 4.21</para>
  </refsect1>
</refentry>
