substituteQspray function

Substitutions in a 'qspray' polynomial

Substitutions in a 'qspray' polynomial

Substitute some variables in a qspray polynomial.

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

Returns

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"))
  • Maintainer: Stéphane Laurent
  • License: GPL-3
  • Last published: 2024-07-27