1
0
mirror of https://github.com/php/doc-zh.git synced 2026-04-23 16:18:14 +02:00
Files
2023-04-03 08:50:43 +08:00

87 lines
2.5 KiB
XML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 26ce97891946b6ce1d7e79c171802a447e1eea34 Maintainer: yincheng Status: ready -->
<!-- CREDITS: mowangjuanzi, Luffy -->
<refentry xml:id="function.log" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>log</refname>
<refpurpose>自然对数</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type>float</type><methodname>log</methodname>
<methodparam><type>float</type><parameter>num</parameter></methodparam>
<methodparam choice="opt"><type>float</type><parameter>base</parameter><initializer><constant>M_E</constant></initializer></methodparam>
</methodsynopsis>
<para>
如果指定了可选的参数 <parameter>base</parameter><function>log</function>
返回 log<subscript>base</subscript>
<parameter>num</parameter>,否则 <function>log</function>
返回参数 <parameter>num</parameter> 的自然对数。
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>num</parameter></term>
<listitem>
<para>
要计算对数的值
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>base</parameter></term>
<listitem>
<para>
可选的底数(默认是“e”,也可以说是自然对数)。
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
<parameter>base</parameter> 为底
<parameter>num</parameter> 的对数,如果未指定
<parameter>num</parameter> 则为自然对数。
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>log10</function></member>
<member><function>exp</function></member>
<member><function>pow</function></member>
<member><function>error_log</function></member>
</simplelist>
</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:"~/.phpdoc/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
-->