Skip to content

Ask a compared side's whole limit as that side's own question - #2402

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
feature/compare-the-sides-of-a-limit-once
Nov 9, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
feature/compare-the-sides-of-a-limit-once

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

A two-sided limit at a finite point compares its sides by descending into each, and the descent asks the whole expression's limit from that side (AsTheWholeLimit). That ask took the one level of whole limits a descent may ask, so inside it the side could not ask the regrouping that answers it alone.

x^pi / log(x, 2) at 0 from the right reads as x^pi * ln(x), asked whole, in 0.2 s. Inside the comparison that was refused, and the right side spent 9.5 s on l'Hôpital's rule and the rewrites at infinity before coming back 0/0.

The expression whose sides are compared, asked whole from one side, is that side's own question, and no longer counts as a level. Every other whole ask is limited as before.

Two-sided limit at 0 master this PR
x^pi / log(x, 2) 0, 10.3 s 0, 0.74 s
x^pi / log(x, 2) - 2 -2, 13 s -2, 0.92 s
x^e / log(x, 2) 0, 11 s 0, 0.68 s

Measured:

  • Suite 19217 passed, AOT OK, all ten harnesses clean.
  • limitcheck A/B against master: identical, with no answer moved and no new timeouts.
  • No answer changes, so no BREAKING-CHANGES entry.

Follows #2401, which fixed the one-sided version of the same limit.

🤖 Generated with Claude Code

A two-sided limit at a finite point compares its sides by descending into
each, and the descent asks the whole expression's limit from that side. That
ask took the one level of whole limits a descent may ask, so inside it the side
could not ask the regrouping that answers it alone. x^pi / log(x, 2) at 0 from
the right reads as x^pi * ln(x), asked whole, in 0.2 s; inside the comparison
that was refused, and the side spent 9.5 s on l'Hopital's rule and the
rewrites at infinity before coming back 0/0. The two-sided limit took 10.3 s.

The expression whose sides are compared, asked whole from one side, is that
side's own question, and no longer counts as a level. The two-sided limit takes
0.74 s, with the same answer; x^pi / log(x, 2) - 2 takes 0.92 s, from 13 s.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rafael-SOWNet Rafael-SOWNet added this to the 2.7.0 milestone Nov 9, 2026
@codecov

codecov Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 90.90909% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.81%. Comparing base (42af5e0) to head (3137bda).

Files with missing lines Patch % Lines
...nctions/Continuous/Limits/Solvers/Limit.Classes.cs 80.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2402   +/-   ##
=======================================
  Coverage   86.80%   86.81%           
=======================================
  Files         312      312           
  Lines       69332    69337    +5     
  Branches    20232    20234    +2     
=======================================
+ Hits        60187    60192    +5     
  Misses       4919     4919           
  Partials     4226     4226           
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.34% <90.90%> (+<0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 40.72% <ø> (ø)

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

Files with missing lines Coverage Δ
...ns/Continuous/Limits/Solvers/Solvers.Definition.cs 92.25% <100.00%> (+0.02%) ⬆️
...nctions/Continuous/Limits/Solvers/Limit.Classes.cs 76.13% <80.00%> (-0.24%) ⬇️

... 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 cc5e13b into master Nov 9, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 9, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the feature/compare-the-sides-of-a-limit-once branch November 9, 2026 19:58
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