Skip to content

Integrate a whole power of the square of a polynomial over its root - #1898

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-whole-power-of-a-square-is-written-over-its-root
Oct 16, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-whole-power-of-a-square-is-written-over-its-root

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

A whole power P^n of a polynomial with symbols in it, where P is the square of a polynomial R, is integrated as R^(2n), so (a^2 + 2 a b x^2 + b^2 x^4)^2 is read as (a + b x^2)^4. The rules for a power of a binomial read the root, and the partial fractions took the trinomial whole. The rewrite holds whatever the signs, because the power is whole, and the answer is checked by differentiating it back. With numbers for coefficients the partial fractions already answer, so those are left alone.

Rubi corpus, against master 7e5768b (both arms built and run in one chain; master then moved to d05d20d, merged here):

master this branch
Pocket (7,779 rows) 7,715 solved, 13 timeouts 7,721 solved, 7 timeouts
Families 0–8 sample level level
Rows that moved, rerun alone 0/6 6/6

The six are 1.2.2.2:788–790 and 806–808, which time out on master and answer in about 50 ms here. Over all 734 corpus rows with such a trinomial, master solves 728 and this branch solves all 734, with nothing slower. There are no wrong answers. The performance gate and the unit suite (15,402 passed) pass. The exact check at 50–2,000 digits agrees on all six at three sign patterns of a and b, 216/216.

BREAKING-CHANGES.md has an entry for the six, measured on 2.5.0 and on this branch.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 3 commits October 16, 2026 01:14
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…square-is-written-over-its-root

# Conflicts:
#	Sources/AngouriMath/Functions/Continuous/Integration/IndefiniteIntegralSolver.cs
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 35c9ba5 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