Skip to content

Integrate half an odd power of an inverse hyperbolic cosine of c + d x^2 in error functions - #1908

Merged
Rafael-SOWNet merged 3 commits into
masterfrom
a-half-integer-power-of-an-inverse-hyperbolic-cosine-of-a-quadratic
Oct 16, 2026
Merged

Rafael-SOWNet merged 3 commits into
masterfrom
a-half-integer-power-of-an-inverse-hyperbolic-cosine-of-a-quadratic

Conversation

@Rafael-SOWNet

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

Copy link
Copy Markdown
Member

Part of #718. Follows #1904 and #1906.

#1904 and #1906 integrate whole powers of a + b u, positive and negative, for u an inverse sine, cosine or hyperbolic cosine of c + d x^2 with c^2 = 1. This adds half an odd power for the inverse hyperbolic cosine.

As in #1906, x = kappa g(u/2) with g a hyperbolic sine or cosine and kappa = x/g(u/2) constant on each side of 0, so I(m) = (kappa/2) integral g'(u/2) P^m du with P = a + b u. g' is a sum of e^(u/2) and e^(-u/2), and with z = sqrt(P)/sqrt(2 b):

integral e^(+-u/2) P^(-1/2) du = (2 sqrt(pi)/sqrt(2 b)) e^(-+a/(2 b)) erfi(z) and ... erf(z) respectively.

z is written so that z sqrt(2 b) is the root of P itself, which keeps the branches consistent. I(1/2) is by parts from those, and the recurrence of #1904 runs up from I(-1/2) and I(1/2), and down. The inverse sine and cosine would want the Fresnel integrals, which have no node, so they are left.

Checks

  • Exact checks at 50–2000 digits on the fourteen corpus shapes, at four sign patterns including points off the real domain: 672/672.
  • APowerOfAnInverseFunctionOfAQuadraticIntegralTest: 5 more cases.

Corpus, measured against master 90c9d3e (this branch then merged 0cc1e5d):

master this branch
pocket: every row of 5.1.5, 5.2.5, 7.1.5, 7.2.5 (719 statable) 686 700
families 0–8 samples unchanged
rows moved +14: 7.2.5:359–372

No losses. One row read as slow, 3.3:83 (145 → 620 ms). Re-timed alone, the two arms are 557–567 ms and 545–568 ms. Gate passed; suite 15,469 passed, 0 failed.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

Rafael-SOWNet and others added 3 commits October 16, 2026 13:53
…x^2 in error functions

Through u as for the negative powers: x = kappa g(u/2), and with P = a + b u the integrals of
e^(+-u/2) P^(-1/2) are (2 sqrt(pi)/sqrt(2 b)) e^(-+a/(2 b)) times erfi or erf of
sqrt(P)/sqrt(2 b). I(1/2) is by parts from them, and the recurrence runs up and down from I(-1/2)
and I(1/2). Rubi's 7.2.5 (a + b acosh(1 + d x^2))^(5/2) and the like, from -7/2 to 5/2, were
declined. The circular functions would want the Fresnel integrals, which have no node.

Part of #718

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
…r-of-an-inverse-hyperbolic-cosine-of-a-quadratic
…eaking changes

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 adba48c 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