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]]/(xn)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 nn, and all outputs are truncated to length nn. The truncation order is fixed; elements of a context with order m≤nm \le n can be used as inputs in a context with order nn, but not the other way round. For n=0n = 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-11-02).