Repository navigation
A radical times a power of its variable is solved as one fractional power - #2323
Merged
Rafael-SOWNet merged 1 commit intoNov 1, 2026
Conversation
…ower An equation in sqrt(x), or a cube root of x, beside powers of x is solved by raising the radical's side to a power, and FractionedPolynoms looks for each fractional power first. The power rules write x * sqrt(x) as x ^ (1/2 + 1), and it matched only an exponent that was already a number, so a term with an exponent written as a sum was no fractional power. Such equations, including every c/x cleared of its denominator, went to Newton's method, which answered in decimals, missed roots, and kept numbers that are not roots: sqrt(x) - 1/x - 1 - i = 0 was answered with one decimal root and without -1. The exponent is now folded before it is read. A power past one is then read as a whole power times a proper fractional one, x^(3/2) as x * sqrt(x), so it shares the radical of sqrt(x): 3 sqrt(x) - x^(3/2) is the one term (3 - x) sqrt(x), where read as sqrt(x) and sqrt(x^3) it would be two radicals that cannot be raised together. Raising keeps every root whichever root is taken, since (x^(p/q))^q is x^p, and the solution check removes what it adds. Generated equations of this shape (e387 radcheck, powers-of-x mode, 200 at seed 31): 2.6.0 missed 45 roots in 22 equations and answered 5 numbers that are not roots; master before this, 37 in 20 and 4; now 2 and 0. The default mode, 400 equations in roots of polynomials at seed 21, is unchanged: the same 39 sums of two radicals left unsolved on both builds, and no root missed or wrong on either. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #2323 +/- ##
==========================================
- Coverage 86.76% 86.76% -0.01%
==========================================
Files 312 312
Lines 68354 68374 +20
Branches 19876 19885 +9
==========================================
+ Hits 59306 59323 +17
- Misses 4890 4892 +2
- Partials 4158 4159 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
Rafael-SOWNet
deleted the
a-radical-times-a-power-is-solved-as-one-fractional-power
branch
November 1, 2026 22:01
This was referenced Nov 1, 2026
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.
An equation in
sqrt(x), or a cube root ofx, beside powers ofxis solved by raising the radical's side to a power, andFractionedPolynomslooks for each fractional power first. The power rules writex * sqrt(x)asx ^ (1/2 + 1). It matched only an exponent that was already a number, so a term whose exponent is a sum was no fractional power. Such equations, including everyc/xcleared of its denominator, went to Newton's method.sqrt(x) - 1/x - 1 - i = 0is(s - i)(s^2 - s - i) = 0ins = sqrt(x), so its roots are-1and1.3002 + 1.6248i. 2.6.0 and master answer only the decimal one.Two changes in
FractionedPolynoms:x^(3/2)isx * sqrt(x)and shares the radical ofsqrt(x). Without this,3 sqrt(x) - x^(3/2)is two radicals that cannot be raised together.Raising keeps every root whichever root is taken, since
(x^(p/q))^qisx^p. The solution check removes what the raising adds.Generated equations of this shape (a powers-of-
xmode added to the radical cross-check, 200 equations at seed 31):The two still missing are roots of a degree-7 polynomial, near 23 and -26, which the polynomial solver misses. That is a separate defect, with its own PR to follow. The default mode, 400 equations in roots of polynomials at seed 21, is unchanged: the same 39 sums of two radicals left unsolved on both builds, and no root missed or wrong on either.
BREAKING-CHANGES.mdhas an entry.(3 - x)*sqrt(x) - x = 0is now spelled{ 0, (-7 + sqrt(13)) / (-2) }, where it was{ 0, (7 - sqrt(13)) / 2 }. Test:ARadicalTimesAPowerTest; four of its six cases fail on master. The other two pin the regrouping, which master reached by another route.🤖 Generated with Claude Code