powered by
Takes a polynom class object and returns a character class object looks like the print image of the polynom object.
pn2ch(x, symb = "x", digits = getOption("digits"), decreasing = FALSE, ...)
the given polynom class object
the symbol of polynom
the number of significant digits to be printed
the desired order of the terms of the polynomial
additional arguments
A character class object.
A technical subrutin to convert a polynom object to a character object.
pprt
# 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