changeParameters {symbolicQspray} | R Documentation |
Change of parameters in a 'symbolicQspray' polynomial
Description
Replaces the parameters of a symbolicQspray
polynomial
(which are qspray
objects) with some qspray
polynomials.
E.g. you have a polynomial with two parameters P_{a,b}(x)
and you
want the polynomial P_{a+1,b+1}(x)
(see example).
Usage
changeParameters(Qspray, newParameters)
Arguments
Qspray |
a |
newParameters |
a list containing at least |
Value
The symbolicQspray
polynomial obtained by replacing the
parameters of the symbolic polynomial given in the Qspray
argument
with the polynomials given in the newParameters
argument.
See Also
If you want to change the variables of a symbolic qspray, use
changeVariables
. If you want to assign some values to
its parameters, use substituteParameters
.
Examples
library(symbolicQspray)
( JP <- JacobiPolynomial(2) ) # a univariate polynomial with two parameters
a1 <- qlone(1)
a2 <- qlone(2)
changeParameters(JP, list(a1, a2)) == JP # should be TRUE
changeParameters(JP, list(a1+1, a2+1))