FLINT3.7.0-dev

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

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