https://github.com/cran/pracma
Raw File
Tip revision: c79a04b5074656b36e591191eb8137b70a349932 authored by Hans W. Borchers on 30 June 2014, 00:00:00 UTC
version 1.7.0
Tip revision: c79a04b
polytrans.Rd
\name{polytrans}
\alias{polytrans}
\title{Polynomial Transformation}
\description{
  Transform a polynomial.
}
\usage{
polytrans(p, q)
}
\arguments{
  \item{p, q}{vectors representing two polynomials.}
}
\details{
  Transforms polynomial \code{p} replacing occurences of \code{x} with
  another polynomial \code{q} in \code{x}.
}
\value{
  Vector representing a polynomial.
}
\note{
  There is no such function in Matlab or Octave.
}
\seealso{
  \code{\link{polypow}}
}
\examples{
# (x+1)^2 + (x+1) + 1
polytrans(c(1, 1, 1), c(1, 1))    #=> 1 3 3
polytrans(c(1, 1, 1), c(-1, -1))  #=> 1 1 1
}
\keyword{ math }
back to top