evalSymbolicQspray {symbolicQspray} | R Documentation |
Evaluation of a 'symbolicQspray' polynomial
Description
Evaluates a symbolicQspray
polynomial by substituting
some values to the parameters (same as substituteParameters
)
or to the variables (same as substituteVariables
) or both.
Usage
evalSymbolicQspray(Qspray, a = NULL, X = NULL)
Arguments
Qspray |
a |
a |
vector of values to be substituted to the parameters;
these values must be coercible to |
X |
vector of values to be substituted to the variables; these
values must be coercible to |
Value
If both a
and X
are NULL
, this returns the
input symbolicQspray
object; otherwise, if a
is not
NULL
, this returns a qspray
object, and if
X
is not NULL
, this returns a ratioOfQsprays
object.
Examples
library(symbolicQspray)
a1 <- qlone(1); a2 <- qlone(2)
X1 <- Qlone(1); X2 <- Qlone(2); X3 <- Qlone(3)
( Qspray <- (a1 + 2)*X1^2*X2 + (a2/(a1^2+a2))*X1*X2*X3 )
a <- c(2, 3)
X <- c(4, 3, 2)
( qspray <- evalSymbolicQspray(Qspray, a = a) )
( rOQ <- evalSymbolicQspray(Qspray, X = X) )
evalSymbolicQspray(Qspray, a = a, X = X)
evalQspray(qspray, X)
evalRatioOfQsprays(rOQ, a)
[Package symbolicQspray version 1.1.0 Index]