/
log1p.xml
29 lines (27 loc) · 1.04 KB
/
log1p.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="../../../../template/methodWrapper.xsl"?>
<method name="log1p" parent="Math" xmlns="http://www.jsman.net/xsd/manual"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jsman.net/xsd/manual ../../../../schema/jsman-manual.xsd">
<lead>
<p>log1p — Returns the <xref href="manual/1. Standard Global Objects/Math/1. E/E.xml">Math.E</xref> of 1 + a number.</p>
</lead>
<description>
<p>Math.log1p(<params/>)</p>
</description>
<parameters>
<parameter name="number" type="number" optional="false"></parameter>
</parameters>
<examples>
<example>
<heading>log1p example</heading>
<code>
console.log(Math.log1p(3)); // 1.3862943611198906
console.log(Math.log1p(8)); // 2.1972245773362196
console.log(Math.log1p(-3)); // NaN
</code>
</example>
</examples>
<external>
<mdn href="https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p">Math.log1p method</mdn>
</external>
</method>