reference/math/functions/log.xml
26ce97891946b6ce1d7e79c171802a447e1eea34
...
...
@@ -7,16 +7,16 @@
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<methodsynopsis>
11
-
<type>float</type><methodname>log</methodname>
12
-
<methodparam><type>float</type><parameter>arg</parameter></methodparam>
13
-
<methodparam choice="opt"><type>float</type><parameter>base</parameter><initializer>M_E</initializer></methodparam>
14
-
</methodsynopsis>
10
+
<methodsynopsis>
11
+
<type>float</type><methodname>log</methodname>
12
+
<methodparam><type>float</type><parameter>num</parameter></methodparam>
13
+
<methodparam choice="opt"><type>float</type><parameter>base</parameter><initializer><constant>M_E</constant></initializer></methodparam>
14
+
</methodsynopsis>
15
15
<para>
16
16
If the optional <parameter>base</parameter> parameter is specified,
17
17
<function>log</function> returns log<subscript>base</subscript>
18
-
<parameter>arg</parameter>, otherwise <function>log</function>
19
-
returns the natural logarithm of <parameter>arg</parameter>.
18
+
<parameter>num</parameter>, otherwise <function>log</function>
19
+
returns the natural logarithm of <parameter>num</parameter>.
20
20
</para>
21
21
</refsect1>
22
22
<refsect1 role="parameters">
...
...
@@ -24,7 +24,7 @@
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>arg</parameter></term>
27
+
<term><parameter>num</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The value to calculate the logarithm for
...
...
@@ -46,38 +46,11 @@
46
46
<refsect1 role="returnvalues">
47
47
&reftitle.returnvalues;
48
48
<para>
49
-
The logarithm of <parameter>arg</parameter> to
49
+
The logarithm of <parameter>num</parameter> to
50
50
<parameter>base</parameter>, if given, or the
51
51
natural logarithm.
52
52
</para>
53
53
</refsect1>
54
-
<refsect1 role="changelog">
55
-
&reftitle.changelog;
56
-
<para>
57
-
<informaltable>
58
-
<tgroup cols="2">
59
-
<thead>
60
-
<row>
61
-
<entry>&Version;</entry>
62
-
<entry>&Description;</entry>
63
-
</row>
64
-
</thead>
65
-
<tbody>
66
-
<row>
67
-
<entry>4.3.0</entry>
68
-
<entry>
69
-
The optional parameter <parameter>base</parameter> became available.
70
-
For older versions you can calculate the logarithm in base <literal>b</literal>
71
-
of a number <literal>n</literal>, but using the mathematical identity:
72
-
log<subscript>b</subscript>(n) = log(n)/log(b), where log is the
73
-
neperian (or natural) logarithm.
74
-
</entry>
75
-
</row>
76
-
</tbody>
77
-
</tgroup>
78
-
</informaltable>
79
-
</para>
80
-
</refsect1>
81
54
<refsect1 role="seealso">
82
55
&reftitle.seealso;
83
56
<para>
...
...
@@ -85,11 +58,11 @@
85
58
<member><function>log10</function></member>
86
59
<member><function>exp</function></member>
87
60
<member><function>pow</function></member>
61
+
<member><function>error_log</function></member>
88
62
</simplelist>
89
63
</para>
90
64
</refsect1>
91
65
</refentry>
92
-

93
66
<!-- Keep this comment at the end of the file
94
67
Local variables:
95
68
mode: sgml
96
69