Skip to content

Two proportional linears under roots are read as one radical - #1551

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
proportional-linear-radicals
Sep 29, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
proportional-linear-radicals

Conversation

@Rafael-SOWNet

@Rafael-SOWNet Rafael-SOWNet commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

Closes #1386: the integrand it reports is answered now.

sin(a + b (c + d x)^(1/3))/(c e + d e x)^(1/3) came back as 0 provided ... on master, and since the PR that found #1386 it has been declined. SolveByAQuotientOfTwoLinearRadicals rationalises roots of two different linears by t = ((a x + b)/(c x + d))^(1/q). Two proportional linears, c e + d e x = e (c + d x), give it nothing to rationalise, since their determinant a d - b c is zero. They are one radical with a constant in it. So where the determinant is zero, a power of the second linear is written as k^r times the same power of the first, with k their ratio. That is the generic reading of a root of a product, the one TryReadAConstantMultipleOf uses, and a k known to be negative under an even root is refused, since there the two roots differ by a sign. The integrand is then asked again as the same question, as SolveByCancellingWithFunctionsAsIndeterminates asks its rewrite. With one linear left under a root, the rule does not see it again.

Input Was (2.5.0) Now
sin(a+b*(c+d*x)^(1/3))/(c*g+d*g*x)^(1/3) ran past two minutes 3 ((c + d x)^(1/3) (-cos(a + b (c + d x)^(1/3)))/b + sin(a + b (c + d x)^(1/3))/b^2)/(d g^(1/3))

TrigonometricPowerProductTest.TwoProportionalRadicalsAreOne differentiates three such integrands back. It replaces the test that only asked for a non-zero answer, which used e2 for a symbol; that parses as e^2. The test uses g now.

Measured against master 40b7e58. This branch and #1552 and #1553, opened together, were measured all together, and no problem moved, so there was nothing to attribute:

  • A sample of families 1 to 7 (5 per file, 912 problems, 3 s each): master 764 solved, 0 wrong, 44 timeouts, and the three together the same, row for row. Total time 664.6 s and 660.2 s.
  • The independent suites (family 0, 1814 problems, 5 s each): 1750 on both, 0 wrong, 0 timeouts, row for row.
  • The unit tests pass (net10.0, 13329 passed), every target builds, and the allocation gate passes at efb7594: allocation is what the baseline says on all 19 gated benchmarks.
  • The whole of Rubi 4.1.12, 4.2.12, 6.5.3 and 6.5.7, where these integrands come from, is measured in the next quiet window, and posted here before merging.

🤖 Generated with Claude Code

`sin(a + b (c + d x)^(1/3))/(c e + d e x)^(1/3)` was declined, and before that
answered `0`. The rule for roots of two different linears rationalises by
`t = ((a x + b)/(c x + d))^(1/q)`, and two proportional linears give it nothing
to rationalise: their determinant is zero. Such a pair is now one radical with a
constant in it. A power of the second linear is written as the ratio's power
times the same power of the first, and the integrand is asked again as the
one-linear question. A ratio known to be negative under an even root is not
taken, since there the two roots differ by a sign.

Measured against master 40b7e58, together with the other two fixes opened
beside it: a sample of families 1 to 7 (912 problems) 764 solved on both,
row for row, and family 0 1750/1814 on both, 0 wrong.

Closes #1386.

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

Copy link
Copy Markdown
Member Author

The whole of Rubi 4.1.12, 4.2.12, 6.5.3 and 6.5.7 (555 problems that count, 3 s each), against master 40b7e58:

Every problem that moved was re-run on each branch alone. This one answers 16 of them, all in 4.1.12, #1386's own integrand (line 307) among them, in 92 ms median and 789 ms at most. #1552 answers the six in 6.5.3, and #1553 none. No problem master solves is lost.

@Rafael-SOWNet
Rafael-SOWNet merged commit 8b05ef5 into master Sep 29, 2026
31 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the proportional-linear-radicals branch October 29, 2026 00:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant