Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

predict.pMatrix

Calculate the value of a polynomial matrix for real or complex values


Description

Calculate the value of the polynom elements of the ‘polyMatrix’ class object for real and complex argument also.

Usage

## S3 method for class 'polyMatrix'
predict(object,M,...)

Arguments

object

a ‘polyMatrix’ class object

M

a real or complex argument

...

additional arguments

Value

A matrix the just the same size as the input, filled by the values of the polynom elements, at the given argument.

See Also

Examples

# for predict the value of a polynomial matrix at a real or complex value
#    the used method: predict.polyMatrix()

pm <- polyMgen.d(2,2,ch2pn(c("1","x","x^2","0")))
pm # 1, x^2 \ x, 0

predict(pm,2) # 1, 4 \ 2, 0

# for predict the result of a linear model
#    the used method: predict.lm()

x<-1:5;y<-rnorm(5);predict(lm(y~x))

# clean up
# rm(pm, x, y)

polyMatrix

Infrastructure for Manipulation Polynomial Matrices

v0.3.1
MIT + file LICENSE
Authors
Tamas Prohle [aut], Peter Prohle [aut], Nikolai Ryzhkov [aut, cre], Ildiko Laszlo [aut] (<https://orcid.org/0000-0003-2324-8183>), Ulas Onat Alakent [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.