FLINT3.7.0-dev

gr_series_mod_ctx_init

Synopsis#include <flint/gr_series.h>
void gr_series_mod_ctx_init(gr_ctx_t ctx, gr_ctx_t base_ring, slong n)source

Initialises ctx as the ring R[[x]] / (x^n) of truncated power series over base_ring. Elements have type gr_poly_t. All inputs are assumed to have length at most n, and all outputs are truncated to length n. The truncation order is fixed; elements of a context with order m \le n can be used as inputs in a context with order n, but not the other way round. For n = 0 this is the zero ring.

Guides#

Cite this page

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