FLINT3.7.0-dev

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)source

Sets 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).