File: Ops.polynomial.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 (30 lines) | stat: -rw-r--r-- 740 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
26
27
28
29
30
\name{Ops.polynomial}
\alias{Ops.polynomial}
\title{Arithmetic Ops Group Methods for Polynomials}
\description{
  Allows arithmetic operators to be used for polynomial calculations,
  such as addition, multiplication, division, etc.
}
\usage{
\method{Ops}{polynomial}(e1, e2)
}
\arguments{
  \item{e1}{an object of class \code{"polynomial"}.}
  \item{e2}{an object of class \code{"polynomial"}.}
}
\value{
  A polynomial got by performing the operation on the two arguments.
}
\seealso{
  \code{\link{Math.polynomial}},
  \code{\link{Summary.polynomial}}.
}
\examples{
p <- polynomial(c(1, 2, 1))
## 1 + 2*x + x^2
r <- poly.calc(-1 : 1)
## -1*x + x^3
(r - 2 * p)^2
## 4 + 20*x + 33*x^2 + 16*x^3 - 6*x^4 - 4*x^5 + x^6
}
\keyword{symbolmath}