mirror of
https://github.com/php/doc-ja.git
synced 2026-03-25 23:52:16 +01:00
A little bit of help to those who might be looking for a way to log error messages.
26ce978919
88 lines
2.6 KiB
XML
88 lines
2.6 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 26ce97891946b6ce1d7e79c171802a447e1eea34 Maintainer: hirokawa Status: ready -->
|
|
<!-- CREDITS: takagi -->
|
|
<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> の対数、指定しない場合は自然対数を返します。
|
|
</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
|
|
-->
|