FLINT3.7.0-dev

_fmpz_poly_shift_right, fmpz_poly_shift_right

Synopsis#include <flint/fmpz_poly.h>
void _fmpz_poly_shift_right(fmpz * res, const fmpz * poly, slong len, slong n)source
void fmpz_poly_shift_right(fmpz_poly_t res, const fmpz_poly_t poly, slong n)source

Set res to \lfloor \mathit{poly} / x^n \rfloor, dropping the low n coefficients; the result is zero if n is at least the length. The underscore version requires \mathit{len} > n and writes len - n coefficients; res may be equal to poly, in which case the top n entries of the array are left unchanged.

Cite this page

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