Repository navigation
Fold a constant sum that comes to a number before the integral is asked - #1902
Merged
Rafael-SOWNet merged 3 commits intoOct 16, 2026
Merged
Conversation
2 + 2 a - 2 (1 + a) is 0 and 1 + 2 n - 2 (1 + n) is -1 once multiplied out, which neither the simplification nor the rules reading a coefficient or an exponent see. Rubi's 1.2.2.2 1/sqrt(a + (2 + 2 c - 2 (1 + c)) x^4) and 1/sqrt(2 + 2 a - 2 (1 + a) + c x^4), and 1.1.1.2 (c + d x)^(1 + 2 n - 2 (1 + n))/(a + b x)^2, were declined. Part of #718 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…olded-before-the-question
Co-Authored-By: Claude Opus 5.5 (1M context) <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.
Part of #718.
Rubi spells a zero coefficient
2 + 2 a - 2 (1 + a)and an exponent of-1as1 + 2 n - 2 (1 + n). Neither the simplification nor the rules that read a coefficient or an exponent see through either, so1/sqrt(2 + 2 a - 2 (1 + a) + c x^4)was declined where1/sqrt(c x^4)is answered.SolveByFoldingConstantSumsToTheirNumbersruns first in the dispatcher, on the question asked only. It takes the terms of each sum that are free of the variable. If one of them holds a product with a sum in it, and together they multiply out to a number, it writes that number in their place and asks the result as the same question. A sum that multiplies out to anything other than a number, such asm + 2 (1 + n), is left alone; a test pins that.Checks
ConstantSumsFoldedToTheirNumbersIntegralTest: 5 cases.Corpus, measured against master 55a8044 (this branch then merged 314a8cc):
No losses and no row slower than 2× master + 200 ms. Gate passed; suite 15,418 passed, 0 failed.
1.2.2.2:1149,
1/sqrt(a + (2 + 2 c - 2 (1 + c)) x^4), was answered by 2.5.0 asx/sqrt(a)and declined on master. This restores it. #1901 also answers 1.2.2.2:1138, in 119 characters; folded first, it is 44. One answer 2.5.0 gave changes form:(2 + 2 c - 2 (1 + c)) x^4integrates to0, which BREAKING-CHANGES.md records. 1149 has no entry, since its answer is the one 2.5.0 gave.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura