张钢
2024-08-24 ef05f1416c204098f003c3f4c3861354d18cd503
1
2
3
4
// 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);
};