You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 1ea1f8a
Browse filesBrowse the repository at this point in the historyBrowse files
A power of a + i a csch is integrated in the exponential (#1823)
In w = e^y the sum is a (w + i)^2/(w^2 - 1), so a power of it not whole is
a^p (w + i)^(2p) (w^2 - 1)^(-p) times a constant on every interval where both
are continuous. Part of #718.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
if (radicand is null || power is null || !radicand.Nodes.Any(node => node is Divf(_, var below) && below == s || node is Powf(var b, Number.Integer { EInteger.Sign: < 0 }) && b == s))
24749
+
return null;
24750
+
// In w: s = (w - 1/w)/2, and the sum as one quotient.
24751
+
var w = Variable.CreateUnique(expr, "w_exp");
24752
+
var (top, bottom) = Functions.SingleQuotient.Of(Functions.SingleQuotient.Combine(radicand.Substitute(s, (w - 1 / w) / 2)));
24753
+
foreach (var sign in new[] { MathS.i, -MathS.i })
24754
+
{
24755
+
var square = MathS.Sqr(w + sign);
24756
+
// Bare: the quotient simplifies to `a provided not w + i = 0`, a condition on w beside a constant.
24757
+
var q = Functions.PartialFractions.Bare((top / square).Simplify());
24758
+
if (q.ContainsNode(w))
24759
+
continue;
24760
+
var twice = Number.Rational.Create(power.ERational.Multiply(ERational.FromInt32(2)));
0 commit comments