Skip to content
Oakfield Operator Calculus Function Reference Site

Hyperexponential Function

For λ>0\lambda > 0, ε>0\varepsilon > 0, and integer K1K \ge 1,

ϕ(λ,ε;K)=k=0K1λλ+ε+k=λ[ψ(λ+ε+K)ψ(λ+ε)]\phi(\lambda,\varepsilon;K) = \sum_{k=0}^{K-1} \frac{\lambda}{\lambda + \varepsilon + k} = \lambda\big[\psi(\lambda+\varepsilon+K) - \psi(\lambda+\varepsilon)\big]

where ψ\psi is the digamma function.

Defined for positive λ\lambda, ε\varepsilon and integer K1K \ge 1 (extendable to complex parameters avoiding poles of ψ\psi). Output is real for real inputs.


Monotone increasing in λ\lambda and KK; decreasing in ε\varepsilon. Smooth in parameters away from poles of the digamma. Bounded above by KK.


As KK \to \infty with fixed λ,ε\lambda,\varepsilon, the sum diverges logarithmically; as λ0+\lambda \to 0^{+}, ϕ0\phi \to 0; for large λ\lambda,

ϕ(λ,ε;K)=KKε+K(K1)2λ+O ⁣(K3λ2)\phi(\lambda,\varepsilon;K) = K - \frac{K\varepsilon + \tfrac{K(K-1)}{2}}{\lambda} + \mathcal{O}\!\left(\frac{K^3}{\lambda^2}\right)

Hyperexponential derivatives differentiate ϕ\phi with respect to parameters; warp gradients propagate ϕ\phi through spatial warps.


Oakfield uses hyperexponential φ primarily as a warp profile helper and exposes it to scripting:

  • Analytic warp profile: analytic_warp includes a HYPEREXP profile that evaluates hyperexponential φ and its derivative to drive warp responses.
  • Stable evaluation: φ is implemented via digamma/trigamma differences (avoids explicit inner sums) with safe-domain handling and fallback hooks.
  • Scripting API: φ and φ′ (including complex variants) are exposed through the Lua API for experimentation and parameter sweeps.

This hyperexponential warp is an Oakfield-specific construction expressed in terms of classical special functions (digamma and related polygamma derivatives), chosen for analytic tractability and stable parameter differentiation.


  • NIST Digital Library of Mathematical Functions (DLMF), §5.15