Skip to content

Gather powers of multiples of powers of one linear into one power - #1901

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
powers-of-one-linear-are-gathered-into-one-power
Oct 16, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
powers-of-one-linear-are-gathered-into-one-power

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

Part of #718.

A power B^p that is not whole, of a polynomial B that is a constant times L^k for one linear L, is (B^p/L^(k p)) L^(k p). The quotient's logarithmic derivative is p B'/B - k p L'/L = 0, so it is constant wherever it is continuous and stays in front as written. SolvePowersOfOneLinearAsOnePower gathers such powers by the root of L, integrates the one power that results, and checks it by differentiating back.

It is dispatched last of the rewrites, just before SolveByScalingTheVariable. Asked first, it lengthened answers the rules before it already give: ((a + b x)^3)^(1/3) came out in 111 characters where they write 25. A test pins that both stay with the earlier rules.

Checks

  • Exact checks at 50–2000 digits, every symbol pinned with both signs, n past the wrap at 2.3: 360/360.
  • PowersOfOneLinearAsOnePowerIntegralTest: 6 cases.

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

master this branch
pocket (7,779 rows) 7,736 7,741
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 +5: 1.1.1.2:1780, 1.1.1.3:1002, 1009, 1.2.2.2:1138, 1.3.1:9

Two family-3 rows timed out on the branch in the chain, 3.2.1:292 and 3.2.3:49. Re-run alone, both arms agree on both (one solved, one unsolved). The chain was sharing the machine. Gate passed; suite 15,419 passed, 0 failed.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 3 commits October 16, 2026 05:58
…ar into one power

B^p for B = lambda L^k is (B^p/L^(k p)) L^(k p), and the quotient is constant wherever it is
continuous, so it stays in front as written. Rubi's 1.1.1.2 1/(sqrt(-2 - b x) sqrt(2 + b x)),
1.1.1.3 (a + b x)^n/(x (-a - b x)^n) and 1.3.1 (a^3 + 3 a^2 b x + 3 a b^2 x^2 + b^3 x^3)^p
were declined. Dispatched late, so the rules before it keep the shapes they answer.

Part of #718

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…r-are-gathered-into-one-power

# 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 314a8cc 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