FLINT3.7.0-dev

nmod_mpoly_set_str_pretty

Synopsis#include <flint/nmod_mpoly.h>
int nmod_mpoly_set_str_pretty(nmod_mpoly_t A, const char * str, const char ** x, const nmod_mpoly_ctx_t ctx)source

Sets A to the polynomial in the null-terminated string str, written with integers, the variable names x, parentheses and the operators +, -, *, / and ^ (followed by a nonnegative integer exponent). Integers are reduced modulo n. A division must be exact, which allows division by invertible constants. Returns 0 on success; returns -1 and sets A to zero if the string cannot be parsed or a division is not exact.

Guides#

Cite this page

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