Learn R Programming

mvp (version 1.0-18)

rmvp: Random multivariate polynomials

Description

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

Usage

rhmvp(n=7,size=4,pow=6,symbols=6)
rmvp(n=7,size=4,pow=6,symbols=6)
rmvpp(n=30,size=9,pow=20,symbols=15)
rmvppp(n=100,size=15,pow=99,symbols)

Value

Returns a multivariate polynomial, an object of class mvp

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

Author

Robin K. S. Hankin

Details

Function rhmvp() returns a random homogeneous mvp. Function rmvp() returns a possibly nonhomogenous mvp and functions rmvpp() and rmvppp() return, by default, progressively more complicated mvp objects. Function rmvppp() returns a polynomial with multi-letter variable names.

Examples

Run this code
rhmvp()
rmvp()
rmvpp()
rmvppp()

Run the code above in your browser using DataLab