acb_theta_ql_jet_fd, acb_theta_ql_jet
#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)sourcevoid acb_theta_ql_jet(acb_ptr th, acb_srcptr zs, slong nb, const acb_mat_t tau, slong ord, int all, slong prec)sourceSet th to the derivatives up to order ord of \theta_{a,b} at the nb pairs (z, \tau), for all a and for all b (all nonzero) or b = 0; the output is the concatenation of nb times 2^{2g} (or 2^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 \mathit{prec} \cdot \mathit{ord}^g for fixed g; 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 \theta_{a,b}(z + h_n, \tau) at h_n = (\varepsilon \zeta^{n_0},\ldots, \varepsilon \zeta^{n_{g-1}}) for a primitive m-th root of unity \zeta, m = \mathit{ord} + 1, and all n \in \{0,\ldots, m - 1\}^g; a discrete Fourier transform gives m^g \sum_{k \equiv p \bmod m} a_k \varepsilon^{|k|} for each p, where a_k are the Taylor coefficients. By the Cauchy formula with the bound of acb_theta_ql_local_bound, the error is at most 2cg\varepsilon^{|p|+m}/\rho^{m} before division by \varepsilon^{|p|}. The function chooses \varepsilon, strips (z, \tau) of their radii, raises the precision to compensate for the division by \varepsilon^{\mathit{ord}} (\mathit{ord}+1)^g, and restores certified radii with acb_theta_ql_jet_error and derivatives to order \mathit{ord} + 2 computed at low precision; see Derivatives.
Guides#
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-10-20).
@misc{flint-doc-acb-theta-acb-theta-ql-jet-fd,
author = {{The FLINT team}},
title = {{acb\_theta\_ql\_jet\_fd, acb\_theta\_ql\_jet (acb\_theta.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/acb_theta/acb_theta_ql_jet_fd.html},
note = {Generated 2026-10-20}
}