Learn R Programming

mpoly (version 1.1.2)

vars: Determine the variables in a mpoly object.

Description

Determine the variables in a mpoly object.

Usage

vars(p)

Value

A character vector of the variable names.

Arguments

p

An mpoly or mpolyList object.

Examples

Run this code

p <- mp("x + y^2")
vars(p)

p <- mp(c("x + y^2", "y - 2 x"))
vars(p)

Run the code above in your browser using DataLab