_fmpq_poly_set_str
Synopsis
#include <flint/fmpq_poly.h>The result is only guaranteed to be in lowest terms if all coefficients in the input string are in lowest terms.
Returns 0 if no error occurred. Otherwise, returns -1 in which case the resulting value of (poly, den) is undefined. If str is not null-terminated, calling this method might result in a segmentation fault.
Cite this page
The FLINT team, “_fmpq_poly_set_str (fmpq_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/fmpq_poly/_fmpq_poly_set_str.html (generated 2026-10-20).
@misc{flint-doc-fmpq-poly-fmpq-poly-set-str,
author = {{The FLINT team}},
title = {{\_fmpq\_poly\_set\_str (fmpq\_poly.h)}},
howpublished = {FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev},
year = {2026},
url = {https://flintlib.org/doc/fmpq_poly/_fmpq_poly_set_str.html},
note = {Generated 2026-10-20}
}