break_eternity.js
break_eternity.js copied to clipboard
`Decimal.lambertw("ee4992767175317001")` errors instead of returning a value
When running the following:
Decimal.lambertw("ee4992767175317001")
break_eternity.js errors out with the following:
Uncaught Error: Iteration failed to converge: ee4992767175317001
at d_lambertw (<anonymous>:391:11)
at Decimal.lambertw (<anonymous>:2328:18)
at Function.lambertw (<anonymous>:3035:25)
at <anonymous>:1:9
This number is approximately ee4.993e15, and most other numbers around that range that high up work properly when run through Decimal.lambertw. However, around 1.8% of representable numbers between ee4.5e15 and ee9e15 fail lambertw with the same or a similar error (according to a random sampling of 1e6 numbers between ee1 and ee9e15).
Note: This is not resolved. I mentioned the issue in that pull request as an example of why I wanted to make ssqrt not rely on lambert-w; all I did was make lambert-w less used, I didn't fix it.
Okay, NOW this one's resolved.