You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fb99ffe
Browse filesBrowse the repository at this point in the historyBrowse files
Evaluate an exact power too large to build as the decimal (#2347)
An exact number to a whole power was built exactly however large, so
46655^(10^20), which has 4.7e20 digits, neither returned nor stopped when
cancelled, and nor did a simplification of anything holding it. Found by
compilesweep on (x^x - 1)^(e^(e^x)) at 6; 2.6.0 does not finish it either.
Past 2^24 bits the power is evaluated in the decimal context, as the same
power with a half added already was: +oo past the range, -oo for an odd
power of a negative base, 0 below it. The exact powers of -1, i and -i are
unchanged, and so is every exact power that finishes today (3^(10^7) in
3.3 s). An exact simplification leaves such a power as written: an
infinity counts as exact, so without a guard 2^(10^10) simplified to +oo.
46655^(10^20) now evaluates in 38 ms. The eight large cases each hit the
30 s cap on master and pass here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
0 commit comments