composeQspray function

Compose 'qspray' polynomials

Compose 'qspray' polynomials

Substitutes the variables of a qspray polynomial with some qspray polynomials. E.g. you have a polynomial P(x,y)P(x, y)

and you want the polynomial P(x2,x+y+1)P(x^2, x+y+1) (see example).

composeQspray(qspray, listOfQsprays)

Arguments

  • qspray: a qspray polynomial

  • listOfQsprays: a list containing at least n qspray

    polynomials where n is the number of variables of the polynomial given in the qspray argument

Returns

The qspray polynomial obtained by composing the polynomial given in the qspray argument with the polynomials given in the listOfQsprays argument.

Examples

library(qspray) x <- qlone(1) y <- qlone(2) P <- x*y/2 + 4*y X <- x^2 Y <- x + y + 1 composeQspray(P, list(X, Y)) # this is P(x^2, x+y+1)
  • Maintainer: Stéphane Laurent
  • License: GPL-3
  • Last published: 2024-07-27