forked from ard/ruoyi-api

aijinhui
2023-10-09 1b259de8c0a06e6e16941a4ac3189d950fc542ab
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);
};