2010-03-28 22:10:10 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2009-07-11 07:54:14 +00:00
|
|
|
<!-- $Revision$ -->
|
2007-06-20 22:25:43 +00:00
|
|
|
<refentry xml:id="function.log" xmlns="http://docbook.org/ns/docbook">
|
2007-03-31 10:43:52 +00:00
|
|
|
<refnamediv>
|
|
|
|
<refname>log</refname>
|
|
|
|
<refpurpose>Natural logarithm</refpurpose>
|
|
|
|
</refnamediv>
|
2007-03-31 11:20:55 +00:00
|
|
|
<refsect1 role="description">
|
|
|
|
&reftitle.description;
|
2007-03-31 10:43:52 +00:00
|
|
|
<methodsynopsis>
|
|
|
|
<type>float</type><methodname>log</methodname>
|
|
|
|
<methodparam><type>float</type><parameter>arg</parameter></methodparam>
|
2009-01-16 16:14:26 +00:00
|
|
|
<methodparam choice="opt"><type>float</type><parameter>base</parameter><initializer>M_E</initializer></methodparam>
|
2007-03-31 10:43:52 +00:00
|
|
|
</methodsynopsis>
|
|
|
|
<para>
|
|
|
|
If the optional <parameter>base</parameter> parameter is specified,
|
|
|
|
<function>log</function> returns log<subscript>base</subscript>
|
|
|
|
<parameter>arg</parameter>, otherwise <function>log</function>
|
|
|
|
returns the natural logarithm of <parameter>arg</parameter>.
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-03-31 11:20:55 +00:00
|
|
|
<refsect1 role="parameters">
|
|
|
|
&reftitle.parameters;
|
|
|
|
<para>
|
|
|
|
<variablelist>
|
|
|
|
<varlistentry>
|
2007-03-31 19:18:23 +00:00
|
|
|
<term><parameter>arg</parameter></term>
|
2007-03-31 11:20:55 +00:00
|
|
|
<listitem>
|
|
|
|
<para>
|
2007-03-31 19:18:23 +00:00
|
|
|
The value to calculate the logarithm for
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
|
|
<term><parameter>base</parameter></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2008-04-18 11:10:46 +00:00
|
|
|
The optional logarithmic base to use
|
2007-03-31 19:18:23 +00:00
|
|
|
(defaults to 'e' and so to the natural logarithm).
|
2007-03-31 11:20:55 +00:00
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
|
|
&reftitle.returnvalues;
|
|
|
|
<para>
|
2007-03-31 19:18:23 +00:00
|
|
|
The logarithm of <parameter>arg</parameter> to
|
|
|
|
<parameter>base</parameter>, if given, or the
|
|
|
|
natural logarithm.
|
2007-03-31 11:20:55 +00:00
|
|
|
</para>
|
|
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
|
|
&reftitle.seealso;
|
|
|
|
<para>
|
|
|
|
<simplelist>
|
2007-03-31 19:18:23 +00:00
|
|
|
<member><function>log10</function></member>
|
|
|
|
<member><function>exp</function></member>
|
|
|
|
<member><function>pow</function></member>
|
2007-03-31 11:20:55 +00:00
|
|
|
</simplelist>
|
|
|
|
</para>
|
|
|
|
</refsect1>
|
2007-03-31 10:43:52 +00:00
|
|
|
</refentry>
|
2002-04-15 00:12:54 +00:00
|
|
|
|
|
|
|
<!-- 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
|
2009-09-25 07:04:39 +00:00
|
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
2002-04-15 00:12:54 +00:00
|
|
|
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
|
|
|
|
-->
|