You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
152 B
JavaScript
4 lines
152 B
JavaScript
7 years ago
|
// 20.2.2.20 Math.log1p(x)
|
||
|
module.exports = Math.log1p || function log1p(x){
|
||
|
return (x = +x) > -1e-8 && x < 1e-8 ? x - x * x / 2 : Math.log(1 + x);
|
||
|
};
|