Skip to content

Answer a negative whole power of a base growing without bound as 0 in a limit - #2413

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

Rafael-SOWNet merged 1 commit into
masterfrom
feature/a-negative-power-of-a-growing-base-in-a-limit

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

A power to a constant negative whole exponent tends to 0 when the reciprocal of its base tends to 0. It does whatever direction the base grows in, real or complex. Powf's descent now asks for that reciprocal's limit whole, through AsTheWholeLimit and its guards against asking again inside it. The descent through the base's parts reads (x + 1) - log(x, -1) at 1 as 2 - ln(-1) / 0 and settles nothing. Before, the whole power was simplified, and Simplify expanded it.

"((x + 1) - log(x, -1)) ^ (-16)".ToEntity().Limit("x", 1, side) 2.6.0 master this branch
Left did not finish in 30 s did not finish in 30 s 0, 0.39 s
Right did not finish in 30 s did not finish in 30 s 0, 0.38 s
BothSides did not finish in 30 s did not finish in 30 s 0, 0.48 s

log(x, -1) is i pi / ln(x), so the base tends to a complex infinity at 1, and the values limitcheck samples settle at about 1e-136. This was the last "did not finish" family in limitcheck's 42 seeds, apart from tanh(log(x, -1) - tan(x)) at 1.

A whole exponent only. A base tending to -oo raised to an exponent that is not whole lies along the logarithm's cut, and APowerIsReadByItsOrderTest.APowerOfANegativeBaseIsDeclined pins those as unevaluated. They stay unevaluated.

Neighbouring cases were probed against master and none changed:

  • x^(-3) and (x + i)^(-2) at 0;
  • (1/x + i)^(-2), ln(x)^(-1/2) and (i/ln(x))^(-1/2) at 0 or 1;
  • (x - 1)^(-2) at 1, and tan(x)^(-2) at pi/2;
  • (sin(x) + i)^(-1) and (x sin(x))^(-2) at +oo, both unevaluated: the second has no limit, and the new test checks that it stays unevaluated.

Checked on this branch:

  • Tests: UnitTests 19295 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 differences are the three rows above, which leave "did not finish" on seed 67. No row is added.

🤖 Generated with Claude Code

… a limit

A power to a constant negative whole exponent whose base's reciprocal tends
to 0 tends to 0, whatever direction the base grows in. The reciprocal is asked
whole, under AsTheWholeLimit's guards, since the descent through the base's
parts reads ((x + 1) - log(x, -1)) at 1 as 2 - ln(-1) / 0 and settles
nothing. Before, the whole power was simplified and Simplify expanded it:
((x + 1) - log(x, -1))^(-16) at 1 did not finish in 30 s from any side, and
is now 0 in under half a second. A whole exponent only: a base tending to -oo
to an exponent that is not whole lies along the logarithm's cut, and is still
declined, as APowerIsReadByItsOrderTest pins.

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.80%. Comparing base (a3d11bf) to head (d458bcf).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2413      +/-   ##
==========================================
- Coverage   86.81%   86.80%   -0.02%     
==========================================
  Files         312      312              
  Lines       69477    69480       +3     
  Branches    20293    20295       +2     
==========================================
- Hits        60316    60311       -5     
- Misses       4929     4938       +9     
+ Partials     4232     4231       -1     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.34% <100.00%> (-0.02%) ⬇️
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.78% <100.00%> (+0.15%) ⬆️

... and 5 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 52497e3 into master Nov 11, 2026
35 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the feature/a-negative-power-of-a-growing-base-in-a-limit branch November 11, 2026 21:40
@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