FLINT3.7.0-dev

fmpz_mod_mpoly_q_set_str_pretty

Synopsis#include <flint/fmpz_mod_mpoly_q.h>
int fmpz_mod_mpoly_q_set_str_pretty(fmpz_mod_mpoly_q_t res, const char * s, const char ** vars, fmpz_mod_mpoly_ctx_t ctx)source

Sets res to the rational function in the null-terminated string s, written with integers, the variable names, parentheses, +, -, *, / and ^ followed by an integer exponent. Returns 0 on success; on a parse error or a division by zero, sets res to zero and returns -1.

Cite this page

The FLINT team, “fmpz_mod_mpoly_q_set_str_pretty (fmpz_mod_mpoly_q.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpz_mod_mpoly_q/fmpz_mod_mpoly_q_set_str_pretty.html (generated 2026-10-20).