FLINT3.7.0-dev

fmpz_poly_q_set_str

Synopsis#include <flint/fmpz_poly_q.h>
int fmpz_poly_q_set_str(fmpz_poly_q_t rop, const char * s)source

Sets rop to the rational function described by s, in the format above, and canonicalises it. Returns 0 on success and a nonzero value if s is not valid, in which case the value of rop is unspecified. A denominator string that describes the zero polynomial raises an exception.

Guides#

Cite this page

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