Repository navigation
A perfect square in a power of the variable is read as one - #1491
Merged
Merged
Conversation
sqrt(a^2 + 2 a b x^2 + b^2 x^4) is |a + b x^2|, but the rule that reads a root of a perfect square read only a quadratic in x. It now reads the same quadratic in a power of x, a x^(2k) + b x^k + c, with sgn(x^k + h) in front of the integral as for k = 1. There is no sign where k is even and h is a positive number. The shift h is simplified where it holds a symbol. Rubi's 1.2.2.2, 1.2.2.4, 1.2.2.7 and 1.2.3.2, the 574 problems that count with a perfect square written with symbols: 182 to 388, no row lost, 19 timeouts to 9. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
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.
sqrt(a^2 + 2 a b x^2 + b^2 x^4) sqrt(c + e x + d x^2)was left unevaluated. The radicand is(a + b x^2)^2, so its root is|a + b x^2|, but the rule that reads a root of a perfect square (#1477) read only a quadratic inx. It now reads the same quadratic in a power ofx,a x^(2k) + b x^k + c. It putssgn(x^k + h)in front of the integral, as it does fork = 1, and leaves the sign off wherekis even andhis a positive number. The shifthis simplified where it holds a symbol, so2 a b/(2 b^2)becomesa/b, fork = 1as well.Measured
Two rows went from a decline to a timeout:
(d x)^(23/2)/(a^2 + 2 a b x^2 + b^2 x^4)^(5/2)and its21/2neighbour. Both become a high power ofxover the fifth power ofx^2 + a/b.Still declined: the same square in a symbolic power
x^n, and whole powers of the square, such as1/(a^2 + 2 a b x^2 + b^2 x^4)^2. The whole powers are 84 of the remaining rows, and I'm taking them next.Part of #718.
🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura