hyp2f1_1b_d_series#
jeanspy.hyp2f1_jax.hyp2f1_1b_d_series
- jeanspy.hyp2f1_jax.hyp2f1_1b_d_series(b, d, w, *, n_terms)[source]#
Fixed-term series for 2F1(1, b; d; w) with w in [0,1).
- Implemented via a stable recurrence:
term_0 = 1 term_{n+1} = term_n * (b+n)/(d+n) * w sum = Σ_{n=0}^{N-1} term_n
This is reverse-mode differentiable (static loop bounds).
Notes
Inputs and units. Dimensionless
b,dandw;wis in [0,1). The shapes ofbanddmust broadcast to the shape ofw.n_termsis the static term count.Returns and shape. Approximation to 2F1(1,b;d;w), with the shape of
w.Validity. The denominator
dmust avoid nonpositive integer poles. The fixed series converges slowly near w=1; check the chosen term count.Errors. This helper does not validate the input domain; singular parameters or invalid inputs can produce NaN/inf.
Backend. JAX arrays on the configured CPU/GPU, with dtype set before import.
Differentiation. Fixed-loop continuous expressions support autodiff in their valid regions; piecewise thresholds and parameter singularities need checks.
Examples.
examples/docs_numerics.py