substituteRatioOfQsprays {ratioOfQsprays}R Documentation

Partial evaluation of a 'ratioOfQsprays' fraction of polynomials

Description

Substitute some values to a subset of the variables of a ratioOfQsprays fraction of polynomials.

Usage

substituteRatioOfQsprays(roq, values)

Arguments

roq

a ratioOfQsprays object

values

the values to be substituted; this must be a vector whose length equals the number of variables of roq, 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, e.g. a bigq number

Value

A ratioOfQsprays object.

Examples

library(ratioOfQsprays)
x <- qlone(1)
y <- qlone(2)
z <- qlone(3)
roq <- (x^2 + y^2 + x*y*z - 1) / (x + 1)
substituteRatioOfQsprays(roq, c("2", NA, "3/2"))

[Package ratioOfQsprays version 1.1.0 Index]