FLINT3.7.0-dev

fq_zech_add, fq_zech_sub

Synopsis#include <flint/fq_zech.h>
void fq_zech_add(fq_zech_t rop, const fq_zech_t op1, const fq_zech_t op2, const fq_zech_ctx_t ctx)source
void fq_zech_sub(fq_zech_t rop, const fq_zech_t op1, const fq_zech_t op2, const fq_zech_ctx_t ctx)source

Set rop to \mathit{op1} \pm \mathit{op2}, with one lookup in the Zech table: g^i + g^j = g^{j + Z(i - j)}, and g^i - g^j = g^i + g^{j + (q-1)/2} for odd p.

Cite this page

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