qsprayMaker function

Make a 'qspray' object

Make a 'qspray' object

Make a qspray object from a list of exponents and a vector of coefficients.

qsprayMaker(powers, coeffs, string = NULL)

Arguments

  • powers: list of positive integer vectors

  • coeffs: a vector such that each element of as.character(coeffs)

    is a quoted integer or a quoted fraction; it must have the same length as the powers list

  • string: if not NULL, this argument takes precedence over powers and coeffs; it must be a string representing a multivariate polynomial; see the example

Returns

A qspray object.

Examples

powers <- list(c(1, 1), c(0, 2)) coeffs <- c("1/2", "4") qsprayMaker(powers, coeffs) qsprayMaker(string = "1/2 x^(1, 1) + 4 x^(0, 2)")
  • Maintainer: Stéphane Laurent
  • License: GPL-3
  • Last published: 2024-07-27