qsprayMaker {qspray}R Documentation

Make a 'qspray' object

Description

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

Usage

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

Value

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)")

[Package qspray version 3.1.0 Index]