FLINT3.7.0-dev

fq_default_fprint, fq_default_print

Synopsis#include <flint/fq_default.h>
int fq_default_fprint(FILE * file, const fq_default_t op, const fq_default_ctx_t ctx)source
void fq_default_print(const fq_default_t op, const fq_default_ctx_t ctx)source

Print op to file, respectively stdout, in the plain format of the representation: the format of nmod_poly_print (length, modulus, coefficients from the constant term up) for fq_nmod, that of fmpz_poly_print (length, coefficients) for fq, the discrete logarithm k of \mathit{op} = g^k for the Zech representation (with q - 1 for zero), and the residue for prime fields. fq_default_fprint returns a positive value on success.

Guides#

Cite this page

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