FLINT3.7.0-dev

_gr_poly_write, gr_poly_write, _gr_poly_get_str, gr_poly_get_str, gr_poly_print

Synopsis#include <flint/gr_poly.h>
int _gr_poly_write(gr_stream_t out, gr_srcptr poly, slong len, const char * x, gr_ctx_t ctx)source
int gr_poly_write(gr_stream_t out, const gr_poly_t poly, const char * x, gr_ctx_t ctx)source
int _gr_poly_get_str(char ** res, gr_srcptr f, slong len, const char * x, gr_ctx_t ctx)source
int gr_poly_get_str(char ** res, const gr_poly_t poly, const char * x, gr_ctx_t ctx)source
int gr_poly_print(const gr_poly_t poly, gr_ctx_t ctx)source

Write the polynomial as an expression in the variable named x, in increasing order of degree with zero terms omitted, to a stream, to a newly allocated string *res (to be freed with flint_free), or to standard output with the variable x.

Guides#

Cite this page

The FLINT team, “_gr_poly_write, gr_poly_write, _gr_poly_get_str, gr_poly_get_str, gr_poly_print (gr_poly.h),” FLINT: Fast Library for Number Theory, documentation, version 3.7.0-dev, 2026. https://flintlib.org/doc/gr_poly/_gr_poly_write.html (generated 2026-10-20).