nerdamer/special
Gamma, error, exponential, logarithmic, sine, and cosine special functions.
nerdamer/special. For functions used inside nerdamer('...'), see Nerdamer Notation.Functions
Chi(x: Expression): ExpressionFunctionComputes the hyperbolic cosine integral: Chi(x) = γ + ln(x) + ∫₀ˣ (cosh(t)−1)/t dt, where γ is the Euler–Mascheroni constant. - Chi(±∞) = +∞ - Chi(0) = −∞ - The function is even for the principal branch: Chi(-x) = Chi(x).
Ci(x: Expression): ExpressionFunctionComputes the cosine integral: Ci(x) = γ + ln(x) + ∫₀ˣ (cos(t)−1)/t dt, where γ is the Euler–Mascheroni constant. - Ci(+∞) = 0, Ci(−∞) = 0 - Ci(0) = −∞ - Negative real arguments take the upper side of the principal logarithm branch.
Ei(x: Expression): ExpressionFunctionComputes the exponential integral: Ei(x) = −∫₋ₓ^∞ e^(−t)/t dt (Cauchy principal value). - Ei(+∞) = +∞, Ei(−∞) = 0 - Ei(0) = −∞
erf(x: Expression): ExpressionFunctionComputes the error function erf(x). - erf(+∞) = 1, erf(−∞) = −1 - For numeric inputs, returns a high-precision decimal approximation. - For symbolic inputs, returns an unevaluated erf(x) node.
erfc(x: Expression): ExpressionFunctionComputes the complementary error function: erfc(x) = 1 − erf(x).
gamma(x: Expression): ExpressionFunctionComputes the gamma function Γ(x). - For positive integers: Γ(n) = (n − 1)! - For half-integers (e.g. 1/2, 3/2, -3/2): returns a closed-form expression involving sqrt(π). - For other numeric values: uses a high-precision decimal approximation. - For symbolic inputs: returns an unevaluated gamma(x) node.
gammaIncomplete(a: ExpressionInput, z: ExpressionInput): ExpressionFunctionUpper incomplete gamma Γ(a, z). Positive integer first arguments are expanded exactly using the finite-sum formula. Other inputs remain symbolic.
gammaIncompleteLower(a: ExpressionInput, z: ExpressionInput): ExpressionFunctionLower incomplete gamma γ(a, z). Positive integer first arguments use γ(a,z) = Γ(a) - Γ(a,z). Other inputs remain symbolic.
Li(x: Expression): ExpressionFunctionComputes the logarithmic integral: Li(x) = ∫₀ˣ 1/ln(t) dt. - Li(+∞) = +∞ - Li(1) = −∞ (the function has a logarithmic singularity at 1) - For negative numeric inputs, returns the symbolic form.
Shi(x: Expression): ExpressionFunctionComputes the hyperbolic sine integral: Shi(x) = ∫₀ˣ sinh(t)/t dt. - Shi(+∞) = +∞, Shi(−∞) = −∞ - Shi(0) = 0 - The function is odd: Shi(-x) = -Shi(x).
Si(x: Expression): ExpressionFunctionComputes the sine integral: Si(x) = ∫₀ˣ sin(t)/t dt. - Si(+∞) = π/2, Si(−∞) = −π/2 - Si(0) = 0 - The function is odd: Si(-x) = -Si(x).
sinc(x: Expression): ExpressionFunctionComputes the normalized sinc function: sinc(x) = sin(x) / x. By convention, sinc(0) = 1 (the removable singularity). The function is even: sinc(-x) = sinc(x).
