Skip to content

Remember the limits found within one question - #2408

Merged
Rafael-SOWNet merged 2 commits into
masterfrom
feature/limit-of-a-continuous-function-of-a-limit
Nov 10, 2026
Merged

Rafael-SOWNet merged 2 commits into
masterfrom
feature/limit-of-a-continuous-function-of-a-limit

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

The limit code asks itself questions it has already answered. In tanh(log(arcsin(x), x)) at 0 from the left, the limit of the exponent ln(x) / ln(arcsin(x)) was taken four times over, at a second or more each, and the whole limit took ten seconds.

Limits found are now kept for as long as the outermost limit is being taken, beside the signs that are already kept there. When the same question comes back, it is answered from what was kept.

Only answers are kept:

  • No declines. A decline can come from the scope rather than the question, such as a spent budget of limits or a re-entry guard at its depth.
  • No NaN. A NaN can be an indeterminate form read on the way down, which callers search past.
tanh(log(arcsin(x), x)) at 0 2.6.0 master this PR
from the left unevaluated, 11.7 s tanh(1), 9.4 s tanh(1), 0.4 s
from the right 1, 8.1 s tanh(1), 2.8 s tanh(1), 1.2 s
both sides unevaluated, 9.2 s tanh(1), 11.2 s tanh(1), 1.6 s

The right-hand limit was a wrong 1 on 2.6.0, and an earlier 2.7.0 change corrected it without a breaking-changes entry. This PR adds the entry, beside the one for tanh(log(x, arcsin(x))).

Measured:

  • limitcheck against master, all 42 seeds: the only change is this row, which no longer times out from the left or from both sides. No answer changes. The run took 2103 s in total, against 2155 s on master.
  • Tests and harnesses: every test suite, the AOT build and all ten harnesses pass. The new test is ALimitAlreadyFoundIsNotTakenAgainTest.

🤖 Generated with Claude Code

Rafael-SOWNet and others added 2 commits November 10, 2026 14:52
The limit machinery re-enters itself with questions it has already
answered. In tanh(log(arcsin(x), x)) at 0 from the left, the limit of the
exponent ln(x) / ln(arcsin(x)) was taken four times over, at a second or
more each, and the whole took ten seconds. The limits found are now kept
for as long as the outermost approach is read, beside the signs already
kept there, and the same question asked again is answered from them.

Only answers are kept. A decline can be the scope's and not the
question's -- a budget of limits spent, a re-entry guard at its depth --
and a NaN can be an indeterminate form read on the way down, which
callers search past.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the right it was 1 on 2.6.0, where the limit is tanh(1); from the
left and from both sides it was left unevaluated.

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

codecov Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.81%. Comparing base (3e85c2a) to head (0611d36).

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2408   +/-   ##
=======================================
  Coverage   86.81%   86.81%           
=======================================
  Files         312      312           
  Lines       69407    69415    +8     
  Branches    20261    20271   +10     
=======================================
+ Hits        60256    60263    +7     
+ Misses       4924     4921    -3     
- Partials     4227     4231    +4     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.35% <100.00%> (+<0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (-0.91%) ⬇️

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.08% <100.00%> (+0.20%) ⬆️
...ath/Functions/Continuous/Limits/Transformations.cs 88.24% <100.00%> (+0.01%) ⬆️

... and 8 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 cb49a8c into master Nov 10, 2026
39 of 41 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 10, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the feature/limit-of-a-continuous-function-of-a-limit branch November 10, 2026 16:50
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