Learn R Programming

polynom (version 1.4-1)

monic: Monic Polynomials

Description

Convert a polynomial to monic form by dividing by the leading coefficient.

Usage

monic(p)

Arguments

p

A polynomial. A warning is issued if the polynomial is identically zero.

Value

A polynomial proportional to p with leading coefficient 1.

Details

Similar in effect to p/as.numeric(p[length(p)]) but with some safeguards against leading zero coefficients.

See Also

change.origin