File: monic.Rd

package info (click to toggle)
r-cran-polynom 1.4-1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 212 kB
  • sloc: makefile: 2
file content (25 lines) | stat: -rw-r--r-- 543 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
\name{monic}
\alias{monic}
\title{Monic Polynomials}
\description{
  Convert a polynomial to monic form by dividing by the leading
  coefficient.
}
\usage{
monic(p)
}
\arguments{
  \item{p}{A polynomial.  A warning is issued if the polynomial is
    identically zero.}
}
\details{
  Similar in effect to \code{p/as.numeric(p[length(p)])} but with some
  safeguards against leading zero coefficients.
}
\value{
  A polynomial proportional to \code{p} with leading coefficient 1.
}
\seealso{
  \code{\link{change.origin}}
}
\keyword{symbolmath}