Digamma
The digamma function , the logarithmic derivative of Gamma.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Digamma functionMathWorldDigammaFunctionWikidataQ905326Encyclopedia of MathematicsPsi-functionDLMF5.2.E2FungrimDigammaFunction✓Fungrim entryWolfram LanguagePolyGamma!Digamma(z)the digamma function .SageMath
psi(z)SymPydigamma(z)mpmathdigamma(z)Juliaenumeratio_ball(digamma, z)Rustdigamma(z)Typed signatures
| Type | Package | Applies |
|---|---|---|
(complex | infinity) -> number | analyticreplaces compute-engine | always |
(complex | infinity) -> number | compute-engine | always |
Details
- Digamma is the order-zero polygamma: . The higher derivatives are PolyGamma.
- , the negative Euler-Mascheroni constant.
- Recurrence inherited from Gamma's functional equation: .
- .
- Poles at the nonpositive integers, the same poles as Gamma.
- compute-engine's plain evaluation would otherwise leave Digamma at an exact integer argument symbolic except at the poles;
@enumeratio/analyticoverrides it at every positive integer via , reusing HarmonicNumber. A rational, non-integer argument, or N(), still goes through the numeric path. - Differs from Wolfram: reduces to its closed form on evaluation; Wolfram keeps
Digamma[1/4]untilFunctionExpand. Both agree as identities.
Plot
Examples
1 more kept as data, checked against the oraclesScope #
Properties #
About
| Examples | 24 |
|---|---|
| Checked against | Wolfram Language 22 agree1 differSageMath 18 agree2 differ2 errorSymPy 21 agree3 differmpmath 19 agree3 errorJulia 19 agree3 errorRust 14 agree2 error |
| Crosswalk | WikipediaMathWorldWikidataEncyclopedia of MathematicsDLMFFungrimFungrim entry ×45Wolfram LanguageSageMathSymPympmathJuliaRust |
Implementation
mapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.tsmapped
juliapackages/oracle/src/mappings.tsmapped
rustpackages/oracle/src/mappings.ts