Learn R Programming

mvp (version 1.0-12)

allvars: All variables in a multivariate polynomial

Description

Returns a character vector containing all the variables present in a mvp object.


> (p <- rmvp(3))
mvp object algebraically equal to
3 a^5 c^4 d^2 f^5  +  2 b^4 c^3 d^7 e^5 f^5  +  b^9 c^8 f^5
> allvars(p)
[1] "a" "b" "c" "d" "e" "f"
> 

Usage

allvars(x)

Arguments

x

object of class mvp

Author

Robin K. S. Hankin

Examples

Run this code
p <- rmvp(5)
allvars(p)

Run the code above in your browser using DataLab