Repository navigation
Answer an infinity beside a symbol and a quotient of roots of negative radicands (#2656) - #2666
Open
Rafael-SOWNet wants to merge 2 commits into
Open
Rafael-SOWNet wants to merge 2 commits into
Rafael-SOWNet wants to merge 2 commits into
Conversation
…e radicands (#2656) tan(x) - a at pi/2 from the left was left unevaluated where tan(x) - 3 was +oo: the parts tend to +oo and a, and +oo - a evaluates to no number, so the descent read it as undecided. A symbol is a finite number, as +oo * a already reads it, so an infinity beside a constant that holds no infinity and evaluates to none is that infinity, in Sumf and in Minusf with the subtrahend's infinity negated. The evaluation check is load-bearing: the descent can hand a part back as 1 / 0, and read as a constant beside -oo it answered (cot(x) - 1/x) / (2x) at 0 from the right with -oo, where it is -1/6; ADifferenceOfLogarithmsIsGatheredTest caught that in the first version. sqrt(cos(x)) / sqrt(pi/2 - x) at pi/2 from the right was left unevaluated where it is 1. Both radicands are negative there, each root is i times a real one and the two i cancel, so a quotient of square roots whose radicands are both negative on the way in is taken as the root of the quotient. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2666 +/- ##
==========================================
- Coverage 86.70% 86.70% -0.01%
==========================================
Files 346 345 -1
Lines 75719 75199 -520
Branches 22144 21961 -183
==========================================
- Hits 65655 65202 -453
+ Misses 5430 5405 -25
+ Partials 4634 4592 -42
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two one-sided limits at
pi/2were left unevaluated although each has a value. They fail by two separate mechanisms, both inLimit.Classes.cs.1. An infinity beside a symbolic constant. The parts of
tan(x) - atend to+ooanda.+oo - aevaluates to no number, so the descent read it as undecided, whiletan(x) - 3was answered+oo. A symbol is a finite number here, as+oo * aalready reads it. So inSumf, and inMinusfwith the subtrahend's infinity negated, an infinity beside a constant is now that infinity, provided the constant holds no infinity and evaluates to none.The evaluation check is load-bearing. The descent can hand a part back as
1 / 0, and my first version read that as a constant beside-oo. It answered(cot(x) - 1/x) / (2x)at 0 from the right with-oo, where the limit is-1/6.ADifferenceOfLogarithmsIsGatheredTestcaught it, and both inputs are now pinned in the new test.2. A quotient of square roots whose radicands are both negative on the way in. Each root is
itimes a real one and the twoicancel, so the quotient is taken assqrt(u / v)..Limit(x, ..., side)tan(x) - aatpi/2, leftlimitleft(tan(x) - a, x, pi / 2)+ootan(x) - aatpi/2, right-oocotan(x) - aat 0, right+oosqrt(cos(x)) / sqrt(pi/2 - x)atpi/2, right1sqrt(sin(x)) / sqrt(x)at 0, left1The issue's controls are unchanged.
Checks
OneSidedLimitsAtAPoleAndAtNegativeRadicandsTestcovers both mechanisms and the two-1/6limits above, and checks the values numerically..editorconfiggains one entry: the 2026 header template for the new test file, which IDE0073 requires.Closes #2656.
🤖 Generated with Claude Code