rmvp: Random multivariate polynomials

rmvpR Documentation

Random multivariate polynomials

Description

Random multivariate polynomials, intended as quick “get you going” examples of mvp objects

Usage

rmvp(n=7, size = 6, pow = 6, symbols = 6)

Arguments

n

Number of terms to generate

size

Maximum number of symbols in each term

pow

Maximum power of each symbol

symbols

Symbols to use; if numeric, interpret as the first symbols letters of the alphabet

Details

What you see is what you get, basically. Note that a term such as a^2*b*a^3 will be simplified to a^5*b, so powers in the result may be larger than argument pow.

Value

Returns a multivariate polynomial, an object of class mvp

Author(s)

Robin K. S. Hankin

Examples

rmvp()
rmvp(5,symbols=state.abb)

mvp documentation built on March 31, 2023, 5:43 p.m.