FLINT3.7.0-dev

_fmpz_poly_theta_qexp, fmpz_poly_theta_qexp

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_theta_qexp(fmpz * f, slong e, slong n)source
void fmpz_poly_theta_qexp(fmpz_poly_t f, slong e, slong n)source

Set f to the q-expansion to length n of \vartheta(q)^e, where \vartheta(q) = 1 + 2 \sum_{k \ge 1} q^{k^2} is the Jacobi theta function. Sparse formulas are used for e = 1, 2, and power series arithmetic reduces other e to those.

Cite this page

The FLINT team, “_fmpz_poly_theta_qexp, fmpz_poly_theta_qexp (fmpz_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_poly/_fmpz_poly_theta_qexp.html (generated 2026-10-20).