php-doc-en/reference/math/functions/exp.xml

72 lines
1.6 KiB
XML
Raw Normal View History

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/math.xml, last change in rev 1.2 -->
<refentry id="function.exp">
<refnamediv>
<refname>exp</refname>
<refpurpose>Calculates the exponent of <constant>e</constant></refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>float</type><methodname>exp</methodname>
<methodparam><type>float</type><parameter>arg</parameter></methodparam>
</methodsynopsis>
<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>
&example.outputs;
<screen>
<![CDATA[
1.6275E+005
298.87
]]>
</screen>
</example>
</para>
<para>
See also
<function>log</function> and
<function>pow</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->