fmpq_mpoly_set_str_pretty
Synopsis
#include <flint/fmpq_mpoly.h>int fmpq_mpoly_set_str_pretty(fmpq_mpoly_t A, const char * str, const char ** x, const fmpq_mpoly_ctx_t ctx)sourceSets A to the polynomial given by the null-terminated string str and returns 0, or returns -1 if parsing fails, in which case the value of A is unspecified. The syntax is that of fmpz_mpoly_set_str_pretty: integers, the names in x, parentheses, +, -, *, / and ^ followed by a nonnegative integer; division by a polynomial must be exact, and division by integers gives rational coefficients.
Cite this page
The FLINT team, “fmpq_mpoly_set_str_pretty (fmpq_mpoly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_mpoly/fmpq_mpoly_set_str_pretty.html (generated 2026-10-20).
@misc{flint-doc-fmpq-mpoly-fmpq-mpoly-set-str-pretty,
author = {{The FLINT team}},
title = {{fmpq\_mpoly\_set\_str\_pretty (fmpq\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq_mpoly/fmpq_mpoly_set_str_pretty.html},
note = {Generated 2026-10-20}
}