Skip to content

Fold a constant sum that comes to a number before the integral is asked - #1902

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-constant-sum-is-folded-before-the-question
Oct 16, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-constant-sum-is-folded-before-the-question

Conversation

@Rafael-SOWNet

@Rafael-SOWNet Rafael-SOWNet commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Part of #718.

Rubi spells a zero coefficient 2 + 2 a - 2 (1 + a) and an exponent of -1 as 1 + 2 n - 2 (1 + n). Neither the simplification nor the rules that read a coefficient or an exponent see through either, so 1/sqrt(2 + 2 a - 2 (1 + a) + c x^4) was declined where 1/sqrt(c x^4) is answered.

SolveByFoldingConstantSumsToTheirNumbers runs 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 as m + 2 (1 + n), is left alone; a test pins that.

Checks

  • Exact checks at 50–2000 digits, every symbol pinned with both signs: 192/192.
  • ConstantSumsFoldedToTheirNumbersIntegralTest: 5 cases.

Corpus, measured against master 55a8044 (this branch then merged 314a8cc):

master this branch
pocket (7,779 rows) 7,736 7,739
families 0–8 1,359 of 1,381 in family 1 1,360 (1.2.2.2:1138, also in the pocket); the rest unchanged
rows moved +3: 1.1.1.2:2162, 1.2.2.2:1138, 1149

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 as x/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^4 integrates to 0, 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

Rafael-SOWNet and others added 3 commits October 16, 2026 06:03
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
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 16, 2026
@Rafael-SOWNet
Rafael-SOWNet merged commit bab8c75 into master Oct 16, 2026
34 checks passed
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Oct 16, 2026
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