nlopess Wed Dec 17 11:22:52 2003 EDT
Modified files:
/phpdoc/en/reference/math/functions exp.xml
Log:
added example
Index: phpdoc/en/reference/math/functions/exp.xml
diff -u phpdoc/en/reference/math/functions/exp.xml:1.6
phpdoc/en/reference/math/functions/exp.xml:1.7
--- phpdoc/en/reference/math/functions/exp.xml:1.6 Sat Dec 13 04:48:27 2003
+++ phpdoc/en/reference/math/functions/exp.xml Wed Dec 17 11:22:52 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.exp">
<refnamediv>
@@ -16,14 +16,34 @@
<para>
Returns <constant>e</constant> raised to the power of <parameter>arg</parameter>.
</para>
-
<note>
<para>
'e' is the base of the natural system of logarithms, or approximately
2.718282.
</para>
</note>
-
+ <para>
+ <example>
+ <title><function>exp</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+echo exp(12) . "\n";
+echo exp(5.7);
+?>
+]]>
+ </programlisting>
+ <para>
+ The above example will output:
+ </para>
+ <screen>
+<![CDATA[
+1.6275E+005
+298.87
+]]>
+ </screen>
+ </example>
+ </para>
<para>
See also
<function>log</function> and