https://github.com/cran/pracma
Raw File
Tip revision: 708a2ad382a163d1eef5af0665e3ae2aad200ced authored by HwB on 21 March 2013, 00:00:00 UTC
version 1.4.5
Tip revision: 708a2ad
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 }
back to top