Special Functions API
All functions return numeric results (or {re, im} tables for complex results). Errors surface as Lua errors when inputs fall outside supported domains.
Digamma
Section titled “Digamma”Logarithmic derivative of the Gamma function,
local psi = ooc.digamma(1.5)local psi_c = ooc.digamma({1.0, 0.2})Trigamma
Section titled “Trigamma”First polygamma (derivative of digamma),
local trig = ooc.trigamma(2.0)local trig_c = ooc.trigamma({0.5, -0.3})Hyperexponential
Section titled “Hyperexponential”-- High precision evaluation of hyperexponential sumlocal val = ooc.hyperexp(2.0, 0.5, 8)
-- Digamma backed evaluation for stability at large Klocal phi = ooc.hyperexp_phi(2.0, 0.5, 8)
-- Complex extensionlocal phi_c = ooc.hyperexp_phi_complex({1.2, 0.3}, {0.8, -0.1}, 8)
-- Derivative of phi with respect to lambdalocal dphi = ooc.hyperexp_phi_deriv(1.5, 0.4, 6)q-Deformed Hyperexponential
Section titled “q-Deformed Hyperexponential”local qh = ooc.qhyperexp(1.5, 0.2, 12, 0.9)
-- Alias of `ooc.qhyperexp`; evaluates the same $\phi_q$ for real arguments.local qphi = ooc.qhyperexp_phi(1.5, 0.2, 12, 0.9)
-- Complex extensionlocal qphi_c = ooc.qhyperexp_phi_complex({0.6, 0.4}, {0.3, -0.2}, 12, 0.9)
-- Derivative of $\phi_q$ with respect to $\lambda$local qphi_d = ooc.qhyperexp_phi_deriv(1.5, 0.2, 12, 0.9)
-- Complex derivativelocal qphi_dc = ooc.qhyperexp_phi_deriv_complex({0.6, 0.4}, {0.3, -0.2}, 12, 0.9)Jackson q-Number
Section titled “Jackson q-Number”with limit as .
local qn = ooc.qnumber(1.5, 0.8)local qn_c = ooc.qnumber({0.5, 0.2}, 0.8)q-Deformed Hurwitz Zeta
Section titled “q-Deformed Hurwitz Zeta”convergent for , , .
local z = ooc.qzeta(1.5, 0.5, 0.9)q-Digamma Series
Section titled “q-Digamma Series”falling back to the classical as .
local qpsi = ooc.qdigamma(1.25, 0.9)local qpsi_c = ooc.qdigamma({1.0, -0.25}, 0.9)