Learn R Programming

mpoly (version 1.1.2)

basis_monomials: Enumerate basis monomials

Description

Enumerate basis monomials in the standard basis up to a given degree.

Usage

basis_monomials(indeterminates, d)

Value

a mpolyList() object of monomials

Arguments

indeterminates

a character vector

d

the highest total degree

Examples

Run this code

basis_monomials(c("x", "y"), 2)
basis_monomials(c("x", "y"), 3)
basis_monomials(c("x", "y", "z"), 2)
basis_monomials(c("x", "y", "z"), 3)

Run the code above in your browser using DataLab