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)sourcevoid fq_default_print(const fq_default_t op, const fq_default_ctx_t ctx)sourcePrint 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).
@misc{flint-doc-fq-default-fq-default-fprint,
author = {{The FLINT team}},
title = {{fq\_default\_fprint, fq\_default\_print (fq\_default.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fq_default/fq_default_fprint.html},
note = {Generated 2026-10-20}
}