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 d8b8903
Browse filesBrowse the repository at this point in the historyBrowse files
Integrate the polygamma functions, and give an odd order its exact values (#2073)
Each order integrates to the one before, int psi^(n)(u) = psi^(n - 1)(u),
and the digamma function to ln Gamma(u) = ln((u - 1)!), for an argument
linear in the variable; the integrator reads them from the table it reads
the other special functions from.
An odd order at a whole or half-whole argument is exact: psi^(n)(1) =
n! zeta(n + 1) and psi^(n)(1/2) = (2^(n + 1) - 1) n! zeta(n + 1) (DLMF
5.15.2, 5.15.3), with zeta(2m) a rational times pi^(2m) from the exact
Bernoulli numbers, and the recurrence moves the argument to either:
polygamma(1, 1) is pi^2/6 and polygamma(1, 3) is pi^2/6 - 5/4. An even
order wants zeta at an odd number or Euler's constant, and stays as
written. Each exact value is checked against the numerical one.
Part of #171.
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: BREAKING-CHANGES.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,6 +103,8 @@ as `a - b = 0`, as a statement's own solve reads it: `"x + 1 = 3".Solve("x")` wa
103
103
- **New functions.** `polygamma(n, z)` and `digamma(z)` are the polygamma functions `psi^(n)(z)`, the `(n + 1)`-th derivatives of `ln Gamma(z)`, and the digamma function, which is `polygamma(0, z)`. Neither name was recognised, so each was read as a product with an undeclared variable.
104
104
- **Evaluation.** Each is evaluated to the working precision anywhere in the complex plane but at `0, -1, -2, ...`, its poles, where it is `NaN`.
105
105
- **Derivatives.** Each order differentiates to the next. The derivative of `x!`, which was left unevaluated, is `x! * digamma(x + 1)` ([#171](https://github.com/asc-community/AngouriMath/issues/171)).
106
+
- **Integrals.** Each order integrates to the one before, and `digamma(x)` to `ln((x - 1)!)`.
107
+
- **Exact values.** An odd order at a whole or half-whole argument is a rational times a power of `pi` plus a rational: `polygamma(1, 1)` is `1/6 * pi ^ 2`.
106
108
107
109
| Input | Was (2.6.0) | Now |
108
110
|---|---|---|
@@ -111,6 +113,8 @@ as `a - b = 0`, as a statement's own solve reads it: `"x + 1 = 3".Solve("x")` wa
111
113
| `"polygamma(1, 1)".ToEntity()` | an `UnhandledParseException` | `polygamma(1, 1)`, which evaluates to `1.6449340668482264…` |
Copy file name to clipboardExpand all lines: Sources/AngouriMath/Functions/Evaluation/Evaluation.Continuous/Evaluation.Continuous.Arithmetics.Classes.cs
0 commit comments