Evaluate a 'qspray' object
Evaluation of the multivariate polynomial represented by a qspray
object.
evalQspray(qspray, values_re, values_im = NULL)
qspray
: a qspray
objectvalues_re
: vector of the real parts of the values; each element of as.character(values_re)
must be a quoted integer or a quoted fractionvalues_im
: vector of the imaginary parts of the values; each element of as.character(values_im)
must be a quoted integer or a quoted fractionA bigq
number if values_im=NULL
, a pair of bigq
numbers otherwise: the real part and the imaginary part of the result.
x <- qlone(1); y <- qlone(2) P <- 2*x + "1/2"*y evalQspray(P, c("2", "5/2", "99999")) # "99999" will be ignored