1
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="log1p" xml:lang="en">
4
<refname>log1p</refname>
5
<refpurpose>computes with accuracy the natural logarithm of its argument
10
<title>Calling Sequence</title>
11
<synopsis>y=log1p(x)</synopsis>
14
<title>Arguments</title>
19
<para>real scalar, vector or matrix</para>
25
<para>real scalar, vector or matrix</para>
31
<title>Description</title>
33
<literal>log1p(x)</literal> is the "element-wise" <literal>log(1+x)</literal> function.
34
<literal>y(i,j)=log(1 + x(i,j))</literal>. This function, defined for <literal>x</literal>
35
> -1, must be used if we want to compute <literal>log(1+x)</literal> with accuracy for <literal>|x|</literal>
40
<title>Examples</title>
41
<programlisting role="example"><![CDATA[
4
<refname>log1p</refname>
5
<refpurpose>computes with accuracy the natural logarithm of its argument
10
<title>Calling Sequence</title>
11
<synopsis>y=log1p(x)</synopsis>
14
<title>Arguments</title>
19
<para>real scalar, vector or matrix</para>
25
<para>real scalar, vector or matrix</para>
31
<title>Description</title>
33
<literal>log1p(x)</literal> is the "element-wise" <literal>log(1+x)</literal> function.
34
<literal>y(i,j)=log(1 + x(i,j))</literal>. This function, defined for <literal>x</literal>
35
> -1, must be used if we want to compute <literal>log(1+x)</literal> with accuracy for <literal>|x|</literal>
40
<title>Examples</title>
41
<programlisting role="example"><![CDATA[
49
49
format("v") //reset default format
50
50
]]></programlisting>
52
<refsection role="see also">
53
<title>See Also</title>
54
<simplelist type="inline">
56
<link linkend="log">log</link>
52
<refsection role="see also">
53
<title>See Also</title>
54
<simplelist type="inline">
56
<link linkend="log">log</link>