https://github.com/cran/pracma
Revision 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC, committed by cran-robot on 09 April 2019, 04:10:07 UTC
1 parent bf07673
Tip revision: 26e049d70b4a1c237987e260cba68f6a9413736c authored by Hans W. Borchers on 09 April 2019, 04:10:07 UTC
version 2.2.5
version 2.2.5
Tip revision: 26e049d
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 }
Computing file changes ...