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)sourceSets 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).
@misc{flint-doc-nmod-mpoly-nmod-mpoly-set-str-pretty,
author = {{The FLINT team}},
title = {{nmod\_mpoly\_set\_str\_pretty (nmod\_mpoly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/nmod_mpoly/nmod_mpoly_set_str_pretty.html},
note = {Generated 2026-10-20}
}