View source: R/transformation.R
changeParameters | R Documentation |
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).
changeParameters(Qspray, newParameters)
Qspray |
a |
newParameters |
a list containing at least |
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.
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
.
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))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.