Repository navigation
Write a solved root with one sign where it had two - #2573
Merged
Merged
Conversation
The root of an equation linear in the unknown was written -b / a, and
inverting a product divided the other side by the factor as it stood, so a
coefficient written with a minus sign left the root with two: p V = n R T
solved for T was { -p * V / (-n * R) }, c - 2 x = 0 was { -c / (-2) }, and
1/R = 1/a + 1/b was { (-1) / (-1 / a + -1 / b) }.
A minus sign in front of the divisor is now taken off it and off the dividend,
in the polynomial solver and in the inversion of a product. A divisor counts
as written with one when it is a negative number, a product whose numbers
multiply to a negative one (a coefficient read off a polynomial arrives as
1 * (-1) * n * R), a quotient with such a dividend, or a sum each of whose
terms is one. Only the printed form changes; the values are the same.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t-without-two-signs
q - (1 + p^(-3)) z = z was solved and its root verified, but written with two signs it was not reduced to the expected q / (2 + p^(-3)); with one sign it is. 481 solved, 0 wrong. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2573 +/- ##
==========================================
+ Coverage 86.71% 86.73% +0.01%
==========================================
Files 344 344
Lines 74833 74884 +51
Branches 21838 21856 +18
==========================================
+ Hits 64894 64949 +55
+ Misses 5372 5363 -9
- Partials 4567 4572 +5
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
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.
Fixes #2566.
The root of an equation linear in the unknown was written
-b / a. Inverting a product divided the other side by the factor as it stood. Where the coefficient was written with a minus sign, the root then carried two signs, as in-p * V / (-n * R). Most roots of formulas solved for one of their letters come through the second of these, the inversion of a product.p V - n R Tis read as-n R * T + p V, soTis-p Vover-n R.A minus sign in front of the divisor is now taken off it and off the dividend, in the polynomial solver (
SolveLinear, andx^n = -b/a) and inMulf.InvertNode. A divisor counts as written with one when it is:1 * (-1) * n * R);Only the printed form changes;
b / (-a)and-b / aare the same value everywhere..Solve(...)and.SolveEquation(...)ofp V = n R TforT{ -p * V / (-n * R) }{ p * V / (n * R) }b = a xforx{ -b / (-a) }{ b / a }c - 2 x = 0forx{ -c / (-2) }{ c / 2 }3 - 4 y x = 0forx{ (-3) / ((-4) * y) }{ 3 / (4 * y) }1/R = 1/a + 1/bforR{ (-1) / (-1 / a + -1 / b) }{ 1 / (1 / a + 1 / b) }E = m v^2 / 2forv{ sqrt(-E / (-m * 1/2)), ... }{ sqrt(E / (m * 1/2)), ... }T = 2 pi sqrt(L / g)forL{ (-T / ((-2) * pi)) ^ 2 * g provided ... }{ (T / (2 * pi)) ^ 2 * g provided ... }The issue's last row,
-g * 2 * 1/4 + -g * 2 * 1/4, is a sumInnerSimplifieddoes not collect, and is not touched here.The Modenov corpus gains one row. III.P26.8,
q - (1 + p^(-3)) z = z, was solved and verified, but was not reduced to the expectedq / (2 + p^(-3))while it carried two signs. The baseline records it as Solved: 481 solved, 0 wrong.Local checks:
AngouriMathPublishAot=true;🤖 Generated with Claude Code