Compose 'qspray' polynomials
Substitutes the variables of a qspray
polynomial with some qspray
polynomials. E.g. you have a polynomial
and you want the polynomial (see example).
composeQspray(qspray, listOfQsprays)
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
The qspray
polynomial obtained by composing the polynomial given in the qspray
argument with the polynomials given in the listOfQsprays
argument.
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)