Repository navigation
Read a real power of a vanishing function in a limit by its order - #2397
Merged
Merged
Conversation
A power g^a to an exponent that is not an integer, of a g tending to 0 or +oo, had no reading against a logarithm unless g was x itself: x^pi ln(x) at 0 from the right was 0, while sin(x)^pi ln(x), and even (2x)^pi ln(x), were left unevaluated, and ln(x) / (2x)^(-pi) took fifteen seconds to be. As a factor of the product or quotient the expression is, g^a is x^(k a) times (g / x^k)^a, where k, the limit of x g' / g, is the power of x that g behaves like. The second part tends to a positive number, which is taken out of the limit, and what is left is a power of x against the rest. Only a factor is rewritten: in a sum, the part taken out is the whole of the answer. A base tending to -oo is not read: its real power is complex, and asking for its order took a decline that master gives in 0.3 s to 17.6 s. Found by limitcheck; no issue was filed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2397 +/- ##
==========================================
- Coverage 86.81% 86.81% -0.01%
==========================================
Files 312 312
Lines 69242 69265 +23
Branches 20193 20201 +8
==========================================
+ Hits 60110 60129 +19
- Misses 4914 4917 +3
- Partials 4218 4219 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A real power
g^a(a constantathat is not an integer) of anything other thanxitself had no reading in a limit. Even(2x)^pi ln(x)at 0 from the right was left unevaluated, andln(x) / (2x)^(-pi)took 15 s to be.The fix. Where
g^ais a factor of the product or quotient, andgtends to 0 or to +oo, it is read asx^(k a) · (g / x^k)^a. Herek, the limit ofx g' / g, is the power ofxthatgbehaves like. The second part tends to a positive number and is taken out of the limit, so what remains is a power ofx, which the existing readings answer.sin(x)^pi - x^piis left to the readings it had.Measured on 2.6.0, master (47b6600) and this branch. Each of these is unevaluated on 2.6.0 and on master:
sin(x)^pi ln(x)at 0+0(2x)^pi ln(x)at 0+0sqrt(sin(x)) ln(x)at 0+0ln(x) / (2x)^(-pi)at 0+0, in 0.27 s (master: 15.2 s to decline)sin(sin(x)^pi ln(x))at 0+0sin(x)^pi / x^piat 0+1, in 1.4 s (master: 2.2 s to decline)(x^2 + 1)^(1/pi) / x^(2/pi)at +oo1sqrt(arctan(1)) / (1/2 / x)^sinh(pi)at +oo+oox / (1/2) / (x + 1)^piat −1+−oolimitcheck, 42 seeds at depth 3 with 600 expressions each, against master: 2 limits answered that master leaves unevaluated (the last two rows above), and no losses, wrong answers or new timeouts.
Checks: the full suite passed (19183 tests), as did the MCP, terminal, interactive and F# wrapper suites, the AOT build and the eight harnesses. A BREAKING-CHANGES entry lists the rows.
New test:
APowerIsReadByItsOrderTest. It includes the two negative-base declines, which are asserted to stay unevaluated.🤖 Generated with Claude Code