A power of x times a half-odd power of a logarithm is integrated onto the Gaussian's moments - #1518
Merged
Merged
Conversation
… the Gaussian's moments x^p F^n, with F = ln x or A + B ln(c x^r) and 2n odd: under t = sqrt(F), dx = 2 x t dt/s and x^(p + 1) e^(-(p + 1) F/s) is a constant, so the integral is that constant times 2/s times the integral of t^(2n + 1) e^((p + 1) t^2/s), an even moment of the Gaussian the table answers; beside 1/x it is F^(n + 1)/(s (n + 1)). A polynomial beside it is summed a power at a time, and the logarithm of a power of a linear is the same question under u = d + e x, as Rubi's 3.3 reads it. Part of #1501. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
netstandard2.0 has no KeyValuePair.Deconstruct, so the library did not build for it; the local builds were net10.0 only. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Rafael-SOWNet
added a commit
that referenced
this pull request
Sep 27, 2026
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
This was referenced Sep 27, 2026
Merged
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 #1501.
x^p F^n, whereFisln xorA + B ln(c x^r)andnis half an odd number, is now integrated onto the Gaussian's moments, which #1512 answers.With
t = sqrt(F)andF' = s/x,dx = 2 x t dt/s, andx^(p + 1) e^(-(p + 1) F/s)is constant. So the integral is that constant times2/stimes the integral oft^(2n + 1) e^((p + 1) t^2/s). That is an even moment of the Gaussian, so the table answers it. Beside1/xit is elementary:F^(n + 1)/(s (n + 1)).The constant is written
x^(p + 1) e^(-(p + 1) F/s), as Rubi writes it, rather than withln(c x^r)split intoln c + r ln x. That split holds only wherecis positive. Forln xitself the constant is 1 wherever the logarithm is real, so it's left out.sqrt(ln(x)),1/sqrt(ln(x)),ln(x)^(3/2)x sqrt(ln(x)),x^2/sqrt(ln(x)),sqrt(ln(x))/x^2sqrt(ln(x^2)),sqrt(ln(a x^n)),(a + b ln(c x^n))^(1/2)x^m/sqrt(ln(a x^n)),x^3 ln(a x^n)^(3/2),x^2/ln(a x^n)^(3/2)(f + g x)^2 sqrt(a + b ln(c (d + k x)^n))A polynomial beside the logarithm is summed a power at a time. The logarithm of a power of a linear, Rubi's 3.3, is the same question under
u = d + e x. The first version had neither. The integrator then found the half-odd power integrable, took(f + g x) (a + b ln(c (d + e x)^n))^(3/2)by parts against that antiderivative, and gave up after up to 55 s. On Rubi's corpus, 18 problems went from a 50 ms decline to the 3 s budget, until the rule read those shapes itself.Measured
Measured with the change on
ca85d0c4, before the rebase onto #1514 to #1517. After the rebase, the logarithm, Gaussian, downcasting and definite-integral test classes pass (96).erf,erfcorerfi: 811 across families 0 to 7, at a 3 s budget. This PR solves 565, where The Gaussian, its even moments and the error functions are integrated #1512 alone solves 473, with 0 wrong and nothing lost. Both have 14 timeouts, and the total time goes from 609 s to 614 s. The 92 gained are 36 in 3.1.2, 50 in 3.3, 3 in 3.1.4 and 3 in 3.5, and every erf problem in those four sections is now solved: 36/36, 57/57, 3/3 and 7/7.🤖 Generated with Claude Code
https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura