You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Numeric operators such as +, Γ, =, and β₯ refer to those operations as determined by the type of the operands. When applied to mathematical values, the operators refer to the usual mathematical operations. When applied to extended mathematical values, the operators refer to the usual mathematical operations over the extended real numbers; indeterminate forms are not defined and their use in this specification should be considered an editorial error. When applied to Numbers, the operators refer to the relevant operations within IEEE 754-2019. When applied to BigInts, the operators refer to the usual mathematical operations applied to the mathematical value of the BigInt. Numeric operators applied to mixed-type operands (such as a Number and a mathematical value) are not defined and should be considered an editorial error in this specification.</p>
1179
1179
<p>Conversions between mathematical values and Numbers or BigInts are always explicit in this document. A conversion from a mathematical value or extended mathematical value _x_ to a Number is denoted as "the Number value for _x_" or <emu-eqn id="π½" aoid="π½">π½(_x_)</emu-eqn>, and is defined in <emu-xref href="#sec-ecmascript-language-types-number-type"></emu-xref>. A conversion from an integer _x_ to a BigInt is denoted as "the <dfn id="bigint-value-for">BigInt value for</dfn> _x_" or <emu-eqn id="β€" aoid="β€">β€(_x_)</emu-eqn>. A conversion from a Number or BigInt _x_ to a mathematical value is denoted as "the <dfn id="mathematical-value-of">mathematical value of</dfn> _x_", or <emu-eqn id="β" aoid="β">β(_x_)</emu-eqn>. The mathematical value of *+0*<sub>π½</sub> and *-0*<sub>π½</sub> is the mathematical value 0. The mathematical value of non-finite values is not defined. The <dfn id="extended-mathematical-value-of">extended mathematical value of</dfn> _x_ is the mathematical value of _x_ for finite values, and is +β and -β for *+β*<sub>π½</sub> and *-β*<sub>π½</sub> respectively; it is not defined for *NaN*.</p>
1180
1180
<p>The mathematical function <emu-eqn id="eqn-abs" aoid="abs">abs(_x_)</emu-eqn> produces the absolute value of _x_, which is <emu-eqn>-_x_</emu-eqn> if _x_ < 0 and otherwise is _x_ itself.</p>
1181
+
<p>The mathematical function <emu-eqn id="eqn-ln" aoid="ln">ln(_x_)</emu-eqn> produces the natural logarithm of _x_. The mathematical function <emu-eqn id="eqn-log10" aoid="log10">log10(_x_)</emu-eqn> produces the base 10 logarithm of _x_. The mathematical function <emu-eqn id="eqn-log2" aoid="log2">log2(_x_)</emu-eqn> produces the base 2 logarithm of _x_.</p>
1181
1182
<p>The mathematical function <emu-eqn id="eqn-min" aoid="min">min(_x1_, _x2_, β¦ , _xN_)</emu-eqn> produces the mathematically smallest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The mathematical function <emu-eqn id="eqn-max" aoid="max">max(_x1_, _x2_, ..., _xN_)</emu-eqn> produces the mathematically largest of <emu-eqn>_x1_</emu-eqn> through <emu-eqn>_xN_</emu-eqn>. The domain and range of these mathematical functions are the extended mathematical values.</p>
1182
1183
<p>The notation β<emu-eqn id="eqn-modulo" aoid="modulo">_x_ modulo _y_</emu-eqn>β (_y_ must be finite and non-zero) computes a value _k_ of the same sign as _y_ (or zero) such that <emu-eqn>abs(_k_) < abs(_y_) and _x_ - _k_ = _q_ Γ _y_</emu-eqn> for some integer _q_.</p>
1183
1184
<p>The phrase "the result of <dfn id="clamping">clamping</dfn> _x_ between _lower_ and _upper_" (where _x_ is an extended mathematical value and _lower_ and _upper_ are mathematical values such that _lower_ β€ _upper_) produces _lower_ if _x_ < _lower_, produces _upper_ if _x_ > _upper_, and otherwise produces _x_.</p>
@@ -32994,7 +32995,7 @@ <h1>Math.log ( _x_ )</h1>
32994
32995
1. If _n_ is *1*<sub>π½</sub>, return *+0*<sub>π½</sub>.
32995
32996
1. If _n_ is either *+0*<sub>π½</sub> or *-0*<sub>π½</sub>, return *-β*<sub>π½</sub>.
32996
32997
1. If _n_ < *-0*<sub>π½</sub>, return *NaN*.
32997
-
1. Return an implementation-approximated Number value representing the natural logarithm of β(_n_).
32998
+
1. Return an implementation-approximated Number value representing ln(β(_n_)).
0 commit comments