Compute the principal branch of the (optionally, regularized) incomplete gamma and beta functions. The lower incomplete gamma function γ(s,z) is defined by [REMOVE_ME]∫0zts−1e−tdtintegral0zt(s−1)exp(−t)dt[REMOVEME2]
for Re(s)>0 and by analytic continuation elsewhere in the s-plane, excluding poles at s=0,−1,…. The upper incomplete gamma function Γ(s,z) is defined by [REMOVE_ME]∫z∞ts−1e−tdtintegralzInft(s−1)exp(−t)dt[REMOVEME2]
for Re(s)>0 and by analytic continuation elsewhere in the s-plane except at z=0. The incomplete beta function B(a,b,z) is defined by [REMOVE_ME]∫0zta−1(1−t)b−1dtintegral0zt(a−1)(1−t)(b−1)dt[REMOVEME2]
for Re(a),Re(b)>0 and by analytic continuation to all other (a,b). It coincides with the beta function at z=1. The regularized functions are γ(s,z)/Γ(s), Γ(s,z)/Γ(s), and B(a,b,z)/B(a,b).
Description
Compute the principal branch of the (optionally, regularized) incomplete gamma and beta functions. The lower incomplete gamma function γ(s,z) is defined by
∫0zts−1e−tdtintegral0zt(s−1)exp(−t)dt
for Re(s)>0 and by analytic continuation elsewhere in the s-plane, excluding poles at s=0,−1,…. The upper incomplete gamma function Γ(s,z) is defined by
∫z∞ts−1e−tdtintegralzInft(s−1)exp(−t)dt
for Re(s)>0 and by analytic continuation elsewhere in the s-plane except at z=0. The incomplete beta function B(a,b,z) is defined by
∫0zta−1(1−t)b−1dtintegral0zt(a−1)(1−t)(b−1)dt
for Re(a),Re(b)>0 and by analytic continuation to all other (a,b). It coincides with the beta function at z=1. The regularized functions are γ(s,z)/Γ(s), Γ(s,z)/Γ(s), and B(a,b,z)/B(a,b).
x, z, s, a, b: numeric, complex, arb, or acb vectors.
flags: an integer vector with elements 0, 1, or 2 indicating unregularized, regularized, or alternately regularized; see the FLINT documentation.
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.
See Also
Classes arb and acb; arb_hypgeom_gamma and arb_hypgeom_beta for the complete gamma and beta functions.