forked from ard/ruoyi-api

zhangnaisong
2024-01-02 c14ba09f8c5e08d976f0954e29ed60296348102d
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);
};