FLINT3.7.0-dev

fmpz_mpoly_compose_fmpz_mpoly_gen

Synopsis#include <flint/fmpz_mpoly.h>
void fmpz_mpoly_compose_fmpz_mpoly_gen(fmpz_mpoly_t A, const fmpz_mpoly_t B, const slong * c, const fmpz_mpoly_ctx_t ctxB, const fmpz_mpoly_ctx_t ctxAC)source

Sets A to B with the variable of index i of ctxB replaced by the variable of index c[i] of ctxAC, or by zero if c[i] is negative. Each nonnegative c[i] must be less than the number of variables of ctxAC. This renames, permutes, merges or drops variables at the cost of mapping and sorting the monomials. A may alias B if the contexts are the same.

Guides#

Cite this page

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