FLINT3.7.0-dev

acb_theta_ql_jet_fd, acb_theta_ql_jet

Synopsis#include <flint/acb_theta.h>
void acb_theta_ql_jet_fd(acb_ptr th, acb_srcptr zs, slong nb, const acb_mat_t tau, slong ord, int all, slong prec)source
void acb_theta_ql_jet(acb_ptr th, acb_srcptr zs, slong nb, const acb_mat_t tau, slong ord, int all, slong prec)source

Set th to the derivatives up to order ord of θa,b\theta_{a,b} at the nb pairs (z,τ)(z, \tau), for all aa and for all bb (all nonzero) or b=0b = 0; the output is the concatenation of nb times 22g2^{2g} (or 2g2^g) vectors of derivatives. acb_theta_ql_jet_fd uses finite differences on the output of acb_theta_ql_exact, in time quasi-linear in prec⋅ordg\mathit{prec} \cdot \mathit{ord}^g for fixed gg; acb_theta_ql_jet uses direct summation instead when ord is positive and the precision is low (few duplication steps would be needed).

The finite difference method evaluates θa,b(z+hn,τ)\theta_{a,b}(z + h_n, \tau) at hn=(εζn0,…,εζng−1)h_n = (\varepsilon \zeta^{n_0},\ldots, \varepsilon \zeta^{n_{g-1}}) for a primitive mm-th root of unity ζ\zeta, m=ord+1m = \mathit{ord} + 1, and all n∈{0,…,m−1}gn \in \{0,\ldots, m - 1\}^g; a discrete Fourier transform gives mg∑k≡p mod makε∣k∣m^g \sum_{k \equiv p \bmod m} a_k \varepsilon^{|k|} for each pp, where aka_k are the Taylor coefficients. By the Cauchy formula with the bound of acb_theta_ql_local_bound, the error is at most 2cgε∣p∣+m/ρm2cg\varepsilon^{|p|+m}/\rho^{m} before division by ε∣p∣\varepsilon^{|p|}. The function chooses ε\varepsilon, strips (z,τ)(z, \tau) of their radii, raises the precision to compensate for the division by εord(ord+1)g\varepsilon^{\mathit{ord}} (\mathit{ord}+1)^g, and restores certified radii with acb_theta_ql_jet_error and derivatives to order ord+2\mathit{ord} + 2 computed at low precision; see Derivatives.

Guides#

Cite this page

The FLINT team, “acb_theta_ql_jet_fd, acb_theta_ql_jet (acb_theta.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/acb_theta/acb_theta_ql_jet_fd.html (generated 2026-11-02).