function | since v1.11.50 | Edit |
(log1p x)
Returns ln(1+x). For small values of x, log1p(x) is more accurate than log(1.0+x). If x is ##NaN or ##-Inf or < -1 => ##NaN If x is -1 => ##-Inf If x is ##Inf => ##Inf See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/log1p
(defn ^number log1p
{:added "1.11.10"}
[x] (Math/log1p x))