FLINT3.7.0-dev

acb_hypgeom_bessel_j_nointegration, acb_hypgeom_bessel_j

Synopsis#include <flint/acb_hypgeom.h>
void acb_hypgeom_bessel_j_nointegration(acb_t res, const acb_t nu, const acb_t z, slong prec)source
void acb_hypgeom_bessel_j(acb_t res, const acb_t nu, const acb_t z, slong prec)source

Sets res to the Bessel function of the first kind Jν(z)J_\nu(z).

The nointegration version chooses between the convergent series and the asymptotic expansion. For ∣z∣<8|z| < 8 it sums the convergent series. Otherwise it uses the asymptotic expansion if ∣z∣≥264|z| \ge 2^{64} or 2∣z∣≥prec2|z| \ge \mathit{prec} (and the expansion can reach the precision for the given ν\nu), and the convergent series otherwise, with the working precision increased by an estimate of the cancellation: (∣z∣−∣Im⁡z∣)/log⁡2(|z| - |\operatorname{Im} z|)/\log 2 bits, or less if the terms of the series grow less than that for large ∣ν∣|\nu| (no increase when the terms have equal signs or ν>∣z∣2/4\nu > |z|^2/4). For inexact input with integer ν\nu the series is evaluated at the midpoint and the propagated error is bounded with acb_hypgeom_bessel_j_deriv_bound. If the enclosure has less than one bit of accuracy, it is intersected with a direct bound for ∣Jν(z)∣|J_\nu(z)|.

The automatic version acb_hypgeom_bessel_j chooses between these methods and rigorous numerical integration along a steepest-descent contour (acb_hypgeom_bessel_j_integration) by estimates of their costs, and for inexact input also evaluates at the midpoint with a bound for the derivative. It gives nearly full accuracy for exact input, also for large order and argument including the transition region z≈νz \approx \nu, and nearly the accuracy which the input allows for inexact input (for input which is only as accurate as the working precision, up to 1000 bits, a result up to 12 bits short of that is accepted). The same holds for the automatic versions of the other Bessel functions below. See Choice of method.

Guides#

Cite this page

The FLINT team, “acb_hypgeom_bessel_j_nointegration, acb_hypgeom_bessel_j (acb_hypgeom.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_hypgeom/acb_hypgeom_bessel_j_nointegration.html (generated 2026-11-25).