Skip to content

Read a derivatives' quotient that grew but has a value at the point - #2366

Merged
Rafael-SOWNet merged 2 commits into
masterfrom
fix/a-grown-quotient-with-a-value-is-read
Nov 4, 2026
Merged

Rafael-SOWNet merged 2 commits into
masterfrom
fix/a-grown-quotient-with-a-value-is-read

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

ln(sin(x)) / ln(sinh(x)) from the right at 0 is 1. Master left it unevaluated, and 2.6.0 answered NaN, the claim that it does not exist.

l'Hôpital's rule bounds how much its derivatives' quotient may grow. That is a bound on differentiating again, and the product rule doubles cos(x) * sinh(x). The quotient the rule turned away, cos(x)(e^x + e^(-x)) - sin(x)(e^x - e^(-x)) over 2, is 1 at 0 and needed no more differentiating. So cos(x) * sinh(x) / sin(x) at 0⁺ was left unevaluated, along with everything built on it. log(sinh(x), sin(x)) * cos(x - 2) took 30 s to decline, and (sinh(x)(x + 2))^arcsin(2x) took 5.7 s to answer 1.

A quotient past the bound is now taken where it has a finite real value at a finite destination and holds no step function. That value is its limit there.

limitcheck, DEPTH=3, seeds 14, 16, 19, 23, 26, 28, 29, 31 and 33, against master 984671d:

master this branch
compared 46 666 46 672
the limit did not finish in 5 s 5 1
total time 595 s 550 s
the limit is another value 11 11
the limit is NaN where the values settle 109 109

Every changed answer is recorded in BREAKING-CHANGES.md. Suite, AOT and the harnesses are green locally.

Found by limitcheck at SEED=31 and SEED=33; no issue was filed.

🤖 Generated with Claude Code

l'Hopital's rule bounds how much its derivatives' quotient may grow, which is
a bound on differentiating again, and the product rule doubles
cos(x) * sinh(x). The quotient it turned away, cos(x)(e^x + e^(-x)) -
sin(x)(e^x - e^(-x)) over 2, is 1 at 0 and needed no more differentiating:
cos(x) * sinh(x) / sin(x) from the right at 0 was left unevaluated, and so
was ln(sin(x)) / ln(sinh(x)), which 2.6.0 answered NaN.
log(sinh(x), sin(x)) * cos(x - 2) took 30 s to decline, and
(sinh(x)(x + 2))^arcsin(2x) 5.7 s to answer 1.

A quotient past the bound is now taken where it has a finite real value at a
finite destination and holds no step function, which is its limit there.

limitcheck, DEPTH=3, seeds 14, 16, 19, 23, 26, 28, 29, 31, 33 against
master 984671d: compared 46666 -> 46672, "did not finish in 5 s" 5 -> 1,
595 s -> 550 s, the wrong values and the NaNs unchanged. Found at SEED=31
and SEED=33; no issue was filed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Rafael-SOWNet Rafael-SOWNet added this to the 2.7.0 milestone Nov 4, 2026
@Rafael-SOWNet Rafael-SOWNet moved this from Todo to In review in AngouriMath Nov 4, 2026
@codecov

codecov Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.78%. Comparing base (735b58d) to head (931872b).

Files with missing lines Patch % Lines
...ath/Functions/Continuous/Limits/Transformations.cs 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2366   +/-   ##
=======================================
  Coverage   86.78%   86.78%           
=======================================
  Files         312      312           
  Lines       68861    68867    +6     
  Branches    20066    20069    +3     
=======================================
+ Hits        59761    59767    +6     
+ Misses       4911     4910    -1     
- Partials     4189     4190    +1     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.32% <85.71%> (+<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 Δ
...ath/Functions/Continuous/Limits/Transformations.cs 88.24% <85.71%> (-0.05%) ⬇️

... 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 88e0661 into master Nov 4, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AngouriMath Nov 4, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the fix/a-grown-quotient-with-a-value-is-read branch November 4, 2026 14:27
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