FLINT3.7.0-dev

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

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