substituteQspray {qspray}R Documentation

Substitutions in a 'qspray' polynomial

Description

Substitute some variables in a qspray polynomial.

Usage

substituteQspray(qspray, values)

Arguments

qspray

a qspray object

values

the values to be substituted; this must be a vector whose length equals the number of variables of qspray, and whose each entry is either NA (for non-substitution) or a 'scalar' x such that as.character(x) is a quoted integer or a quoted fraction

Value

A qspray object.

Examples

library(qspray)
x <- qlone(1)
y <- qlone(2)
z <- qlone(3)
p <- x^2 + y^2 + x*y*z - 1
substituteQspray(p, c("2", NA, "3/2"))

[Package qspray version 3.0.0 Index]