https://github.com/cran/pracma
Tip revision: 63f12837f2d7d6d30cdc2b2df60efdef228d8d0f authored by HwB on 10 May 2011, 00:00:00 UTC
version 0.4-0
version 0.4-0
Tip revision: 63f1283
polymul.Rd
\name{polymul}
\alias{polymul}
\title{Multiplying Polynomials}
\description{
Multiply two polynomials given as vectors.
}
\usage{
polymul(p, q)
}
\arguments{
\item{p, q}{Vectors representing two polynomials.}
}
\details{
Polynomial multiplication realized simply by multiplying and summing up
all the coefficients.
}
\value{
Vector representing a polynomial.
}
\note{
\code{conv} also realizes polynomial multiplication, through Fast Fourier
Transformation, with the drawback that small imaginary parts may evolve.
}
\seealso{
\code{conv}, \code{deconv}
}
\examples{
# Multiply x^2 + x + 1 with itself
polymul(c(1, 1, 1), c(0, 1, 1, 1)) #=> 1 2 3 2 1
}
\keyword{ math }