Compute the gamma function, the reciprocal gamma function, the logarithm of the absolute value of the gamma function, the polygamma function, or the beta function. The gamma function Γ(z)
is defined by [REMOVE_ME]∫0∞tz−1e−tdtintegral0Inft(z−1)exp(−t)dt[REMOVEME2]
for Re(z)>0 and by analytic continuation elsewhere in the z-plane, excluding poles at z=0,−1,…. The beta function B(a,b) is defined by [REMOVE_ME]∫01ta−1(1−t)b−1dtintegral01t(a−1)(1−t)(b−1)dt[REMOVEME2]
for Re(a),Re(b)>0 and by analytic continuation to all other (a,b).
Description
Compute the gamma function, the reciprocal gamma function, the logarithm of the absolute value of the gamma function, the polygamma function, or the beta function. The gamma function Γ(z)
is defined by
∫0∞tz−1e−tdtintegral0Inft(z−1)exp(−t)dt
for Re(z)>0 and by analytic continuation elsewhere in the z-plane, excluding poles at z=0,−1,…. The beta function B(a,b) is defined by
∫01ta−1(1−t)b−1dtintegral01t(a−1)(1−t)(b−1)dt
for Re(a),Re(b)>0 and by analytic continuation to all other (a,b).
x, z, s, a, b: numeric, complex, arb, or acb vectors.
prec: a numeric or slong vector indicating the desired precision as a number of bits.
Returns
An arb or acb vector storing function values with error bounds. Its length is the maximum of the lengths of the arguments or zero (zero if any argument has length zero). The arguments are recycled as necessary.
Details
acb_hypgeom_polygamma(s, z) evaluates the polygamma function of order s at z. The order s can be any complex number. For nonnegative integers m, s = m corresponds to the derivative of order m of the digamma function ψ(z)=Γ′(z)/Γ(z). Use acb_hypgeom_polygamma(0, z) to evaluate the digamma function at z.
See Also
Classes arb and acb; arb_hypgeom_gamma_lower and arb_hypgeom_beta_lower for the incomplete gamma and beta functions.