StieltjesGamma
The Stieltjes constants , the coefficients of the Laurent expansion of at : ; with a second argument, the generalized for HurwitzZeta.
✓ checked against that system · ! checked, with disagreements (hover a chip)Wikipedia
Stieltjes constantsMathWorldStieltjesConstantsWikidataQ1816316DLMF25.2.E5FungrimStieltjesGamma✓Fungrim entryWolfram LanguageStieltjesGamma!StieltjesGamma(n)the -th Stieltjes constant .SageMath
stieltjes(n)SymPystieltjes(n)mpmathstieltjes(n)StieltjesGamma(n, a)the generalized Stieltjes constant , from the expansion of at .SymPy
stieltjes(n, a)mpmathstieltjes(n, a)Typed signatures
| Type | Package | Applies |
|---|---|---|
(integer, number?) -> number | analyticreplaces compute-engine | always |
(integer, number?) -> number | compute-engine | always |
Details
- is Euler's constant; , . They have no closed forms beyond .
- ; for this is the definition of Euler's constant.
- Generalized: , so and , the negated digamma. Shift: . Poles at .
- Same normalisation as Wolfram's and mpmath's
stieltjes(n, a). Complex supported. - Numerically, Euler–Maclaurin on . In double precision the partial sum and the subtracted term cancel more and more with : about relative through , at , at — and orders past 30 are left unevaluated rather than returned wrong.
- Certified digits: for an integer order and an exact real , is proven. The Euler–Maclaurin remainder is bounded by integrating each coefficient of on its own: the usual "next term" bound needs to keep one sign past the tail point, and for it does not. See N.
Plot
Examples
3 more kept as data, checked against the oraclesBasic #
Scope #
Applications #
to 40 digits, proven: the Euler–Maclaurin remainder is bounded, and both ends of the enclosure round to these digits
live ↗InOut
Properties #
Possible issues #
Orders past 30 stay unevaluated even under N(): the double-precision kernel cannot be trusted there
live ↗InOut
About
| Examples | 28 |
|---|---|
| Checked against | Wolfram Language 26 agree1 differSageMath 7 agree1 differ1 unevaluatedSymPy 21 agree4 differ2 unevaluated1 errormpmath 18 agree2 differ2 unevaluated1 error |
| Crosswalk | WikipediaMathWorldWikidataDLMFFungrimFungrim entry ×8Wolfram LanguageSageMathSymPy ×2mpmath ×2 |
Implementation
primitive · numericirreducibly numeric — it evaluates rather than rewrites
nativeengine
typescriptpackages/ce-patches/src/compute-engine/numerics/stieltjes.tsmappedexternal
wolfram / mpmathpackages/oracle/src/mappings.tsStieltjesGamma[n, a]; mpmath.stieltjes(n, a).
mapped
sympypackages/oracle/src/mappings.tsmapped
sympypackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
mpmathpackages/oracle/src/mappings.tsmapped
sagepackages/oracle/src/mappings.ts See also: Zeta, HurwitzZeta, EulerGamma, Digamma