print.mpolyList: Pretty printing of a list of multivariate polynomials.

Description Usage Arguments Value Examples

View source: R/print.mpolyList.R

Description

This function iterates print.mpoly on an object of class mpolyList.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## S3 method for class 'mpolyList'
print(
  x,
  varorder = vars(x),
  stars = FALSE,
  order,
  silent = FALSE,
  ...,
  plus_pad = 2L,
  times_pad = 1L
)

Arguments

x

an object of class mpoly

varorder

the order of the variables

stars

print the multivariate polynomial in the more computer-friendly asterisk notation (default FALSE)

order

a total order used to order the monomials in the printing

silent

logical; if TRUE, suppresses output

...

additional parameters to go to base::cat()

plus_pad

number of spaces to the left and right of plus sign

times_pad

number of spaces to the left and right of times sign

Value

Invisible character vector of the printed objects.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
mL <- mp(c("x + 1", "y - 1", "x y^2 z  +  x^2 z^2  +  z^2  +  x^3"))
mL
print(mL, order = "lex")
print(mL, order = "glex")
print(mL, order = "grlex")
print(mL, order = "glex", varorder = c("z","y","x"))
print(mL, order = "grlex", varorder = c("z","y","x"))
print(mL, varorder = c("z","y","x"))

(print(mL, varorder = c("z","y","x"), plus_pad = 1L, silent = TRUE))

(print(mL, silent = TRUE, stars = TRUE, plus_pad = 1L, times_pad = 0L))

mpoly documentation built on March 26, 2020, 7:33 p.m.