fmpz_mpoly_q_set_str_pretty
Synopsis
#include <flint/fmpz_mpoly_q.h>int fmpz_mpoly_q_set_str_pretty(fmpz_mpoly_q_t res, const char * s, const char ** x, fmpz_mpoly_ctx_t ctx)sourceSets res to the rational function given by the null-terminated string s, which may use integers, the variable names, parentheses, +, -, *, / and ^ followed by an integer exponent. Returns 0 on success and -1 if parsing fails or a division by zero occurs, in which case res is unspecified.
Cite this page
The FLINT team, “fmpz_mpoly_q_set_str_pretty (fmpz_mpoly_q.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mpoly_q/fmpz_mpoly_q_set_str_pretty.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mpoly-q-fmpz-mpoly-q-set-str-pretty,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_q\_set\_str\_pretty (fmpz\_mpoly\_q.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpz_mpoly_q/fmpz_mpoly_q_set_str_pretty.html},
note = {Generated 2026-10-20}
}