FLINT3.7.0-dev

mpoly_parse_parse

Synopsis#include <flint/mpoly.h>
int mpoly_parse_parse(mpoly_parse_t E, void * res, const char * s, slong len)source

Parses the string (s, len) and sets res to its value, returning 0 for success and -1 for failure; on failure res holds an unspecified value. The grammar is described at fmpz_mpoly_set_str_pretty: nonnegative integer constants, terminals, +, - (binary and unary), *, / (exact division), ^ followed immediately by a nonnegative integer, parentheses and spaces.

Cite this page

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