Skip to content

Read a power of a positive limit to a constant exponent by continuity in a limit - #2412

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
feature/a-power-of-a-complex-sum-in-a-limit
Nov 11, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
feature/a-power-of-a-complex-sum-in-a-limit

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

A power whose base tends to a positive number or to +oo, to a constant real exponent that is not 0, is continuous at that point, so its limit is the base's limit raised to the exponent. Powf's descent asked for the limit of the whole power first. That simplifies the power, and Simplify expands it.

.Limit("x", "+oo") master this branch
((x + 1) - log(x, -1)) ^ (2^3 * (-1 + -1)) 0, 7.8 s 0, 0.29 s
(x + 1 + i / ln(x)) ^ (-16) 0, 5.5 s 0, 0.16 s
(x + 1 + i / ln(x)) ^ (-20) 0, 16.4 s 0, 0.16 s
(x + 1 + i / ln(x)) ^ (-24) over 30 s 0, 0.16 s

The first row is a limitcheck finding: it did not finish within the harness's 5 s. No answer changes, so there is no BREAKING-CHANGES entry. A base whose limit is negative, 0 or not real still takes the old path, and so does a symbolic exponent. At 1, the same expression still does not finish, as on master: there the sum tends to a complex infinity, which is held for v3 (#1019).

APowerOfAPositiveLimitIsContinuousTest bounds the ^(-32) case at 30 s, which fails on master. It also checks a finite positive base limit ((2 + 1/x)^(-3) → 1/8, (4 + i/ln(x))^(1/2) → 2), with answers the same as master's.

Checked on this branch:

  • Tests: UnitTests 19291 passed, plus the MCP, Terminal, InteractiveWrapper and F# wrapper suites, and the AOT smoke test.
  • Harnesses: BoundCheck, RootCheck, CasBench, PropCheck, SimpSweep, RuleCheck, CanonCheck and Confluence all pass.
  • limitcheck at DEPTH=3, COUNT=600, on 42 seeds against master: the only difference is the row above, which leaves "did not finish" on seed 67. That seed's compared count goes from 5430 to 5431.

🤖 Generated with Claude Code

… in a limit

A base tending to a positive number or to +oo, to a constant real exponent
that is not 0, is continuous there, so the power's limit is the base's limit
to that exponent. The descent asked the whole power first, which simplifies
it, and Simplify expands the power: (x + 1 + i / ln(x))^(-16) at +oo took
7.8 s and ^(-24) more than 30 s, for 0. Both now take about 0.16 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.82%. Comparing base (c1321e0) to head (bf5717d).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2412   +/-   ##
=======================================
  Coverage   86.82%   86.82%           
=======================================
  Files         312      312           
  Lines       69472    69477    +5     
  Branches    20292    20293    +1     
=======================================
+ Hits        60319    60324    +5     
+ Misses       4924     4922    -2     
- Partials     4229     4231    +2     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.36% <100.00%> (+<0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...nctions/Continuous/Limits/Solvers/Limit.Classes.cs 76.62% <100.00%> (+0.26%) ⬆️

... and 7 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit a3d11bf into master Nov 11, 2026
35 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the feature/a-power-of-a-complex-sum-in-a-limit branch November 11, 2026 19:37
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant