Learn R Programming

polyMatrix (version 0.3.1)

pn2ch: Converts a polynom class object to a character class object

Description

Takes a polynom class object and returns a character class object looks like the print image of the polynom object.

Usage

pn2ch(x, symb = "x", digits = getOption("digits"), decreasing = FALSE, ...)

Arguments

x

the given polynom class object

symb

the symbol of polynom

digits

the number of significant digits to be printed

decreasing

the desired order of the terms of the polynomial

additional arguments

Value

A character class object.

Details

A technical subrutin to convert a polynom object to a character object.

See Also

pprt

Examples

Run this code
# NOT RUN {
p <- polynom::polynomial(0:12)
pn2ch(p)

p <- polynom::polynomial(12:0)
pn2ch(p)

# clean up
# rm(p)
# }

Run the code above in your browser using DataLab