fmpz_mpoly_q_factored_set_str_pretty
Synopsis
#include <flint/fmpz_mpoly_q.h>int fmpz_mpoly_q_factored_set_str_pretty(fmpz_mpoly_q_factored_t res, const char * s, const char ** vars, const fmpz_mpoly_ctx_t ctx)sourceSets res to the rational function in the string s, with the syntax of fmpz_mpoly_q_set_str_pretty; this parses the output of both get_str_pretty functions. The expression is evaluated with the arithmetic of this type, so each division by a nonconstant expression factors it. 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_factored_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_factored_set_str_pretty.html (generated 2026-10-20).
@misc{flint-doc-fmpz-mpoly-q-fmpz-mpoly-q-factored-set-str-pretty,
author = {{The FLINT team}},
title = {{fmpz\_mpoly\_q\_factored\_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_factored_set_str_pretty.html},
note = {Generated 2026-10-20}
}