Skip to content

Take the arm off the real line for a quadratic with an even root of a symbol among its coefficients - #1987

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
take-the-arm-off-the-real-line-for-an-even-root-of-a-symbol
Oct 21, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
take-the-arm-off-the-real-line-for-an-even-root-of-a-symbol

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

1/(b (c + d x)^2 + sqrt(-a)) was answered by arms on the sign of its discriminant, 4 sqrt(-a) b d^2. That discriminant is imaginary for every a > 0 and has no sign there, so the answer had a value for no positive a.

A quadratic with i among its coefficients takes the arm off the real line, the arctangent, which uses nothing about its root but sqrt(q)^2 = q. That arm is now taken where an even root of a symbol is among the coefficients too. An odd root is real in this library, and a root seen only squared leaves the discriminant real, so neither takes it. The arm is built inside the existing IntegrateRationalQuadratic and its two sibling callers; no dispatch moves.

Measured on 8270086f, branch against master:

Run Problems Master Branch
Pocket: rows with a root of a symbol, and Rubi's 1.3.1 2,944 2,918 solved 2,919 solved
Family 1, 40 a file 1,381 1,368 1,368
Family 0, whole 1,814 1,789 1,789
Families 2 to 8, sampled 2,410 2,380 2,381

Re-run alone, Rubi's 1.3.1:131 goes from an answer with no value for a > 0 to a verified answer, at 608 characters against 570; it was checked at a = ±1.3 and b = ±0.7. 1.3.1:131 is the only row of the pocket whose verdict moves.

7.4.1:369, which master answers in 24 s against a 5 s budget, timed out on the branch when re-run alone. At a 60 s budget both builds answer it, and the allocations agree to 0.02% (29.5 GB). Of 166 corpus rows with a root of a symbol among a coefficient, 164 answer as before, character for character. None of the problems answered on both builds allocates more on the branch. No run had a wrong answer.

AnEvenRootOfASymbolInAQuadraticIntegralTest differentiates the answers back at both signs. BREAKING-CHANGES.md has the entry, with the 2.5.0 column measured on v2.5.0.

Part of #233.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

… symbol among its coefficients

1/(b (c + d x)^2 + sqrt(-a)) was answered by arms on the sign of its
discriminant 4 sqrt(-a) b d^2, which is imaginary for every a > 0 and has no
sign there, so the answer had a value for no positive a. The arm off the real
line that a quadratic with i among its coefficients takes, the arctangent,
uses nothing about its root but sqrt(q)^2 = q; it is taken where an even root
of a symbol is among the coefficients too. An odd root is real in this
library, and a root seen only squared leaves the discriminant real, so
neither takes it.

Rubi's 1.3.1:131 is answered for either sign of a, and is the one row of a
2,944-row pocket whose verdict moves; 164 of 166 corpus rows with a root of a
symbol in a coefficient answer as before, character for character.

Part of #233.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet added this to the 2.6.0 milestone Oct 21, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit bcb831d into master Oct 21, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Oct 21, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the take-the-arm-off-the-real-line-for-an-even-root-of-a-symbol 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

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant