7 lines
110 B
JavaScript
7 lines
110 B
JavaScript
|
export default function(x) {
|
||
|
var y = 1 + x;
|
||
|
var z = y - 1;
|
||
|
|
||
|
return z === 0 ? x : x * Math.log(y) / z;
|
||
|
}
|