Learn R Programming

polyMatrix (version 0.3.1)

pprt: Intelligent print of a polynom object

Description

Calls the pn2ch converter, and prints the polynomial considering shift parameter and the width of the actual consol window.

Usage

pprt(x, symb = "x", shift = 0, digits = getOption("digits"), decreasing = FALSE, ...)

Arguments

x

the polynom object to be printed

symb

the symbol used in the print

shift

the beginnig shift

digits

the width of the coefficients to be printed

decreasing

indicator of the order of powers terms: decreasing or not

additional arguments

See Also

pn2ch

Examples

Run this code
# NOT RUN {
p <- polynom::polynomial(0:12)
pprt(p)
pprt(p,sh=3)
pprt(p,sh=3,symb="L")
# clean up
# rm(p)
# }

Run the code above in your browser using DataLab