evalQspray {qspray}R Documentation

Evaluate a 'qspray' object

Description

Evaluation of the multivariate polynomial represented by a qspray object.

Usage

evalQspray(qspray, values_re, values_im = NULL)

Arguments

qspray

a qspray object

values_re

vector of the real parts of the values; each element of as.character(values_re) must be a quoted integer or a quoted fraction

values_im

vector of the imaginary parts of the values; each element of as.character(values_im) must be a quoted integer or a quoted fraction

Value

A bigq number if values_im=NULL, a pair of bigq numbers otherwise: the real part and the imaginary part of the result.

Examples

x <- qlone(1); y <- qlone(2)
P <- 2*x + "1/2"*y
evalQspray(P, c("2", "5/2", "99999")) # "99999" will be ignored

[Package qspray version 3.1.0 Index]