Learn R Programming

polyMatrix (version 0.9.16)

charpolynom: Characteristic polynomial of a matrix

Description

Characteristic polynomial of a matrix

Usage

charpolynom(x)

# S4 method for matrix charpolynom(x)

# S4 method for polynomial charpolynom(x)

# S4 method for polyMatrix charpolynom(x)

# S4 method for polyMatrixCharPolynomial,ANY [[(x, i)

# S4 method for polyMatrixCharPolynomial degree(x)

# S4 method for polyMatrixCharPolynomial predict(object, newdata)

# S4 method for polyMatrixCharPolynomial show(object)

Arguments

x

an matrix

i

the degree of the polynomial coefficient to be extract

object

an R object

newdata

the value to be evaluated

Value

When the input is a numerical matrix of matrix class the value is a polynomial object.

When the input is a polyMatrix object then the value is polyMatrixCharClass class object,

Methods (by class)

  • matrix: for numerical matrix it is a polynomial with numerical coefficients

  • polynomial: for polynomial it treats as a matrix 1x1

  • polyMatrix: for polynomial matrix has polynomial coefficients

  • x = polyMatrixCharPolynomial,i = ANY: get polynomial coefficient of characteristic polynomial

  • polyMatrixCharPolynomial: the degree of char polynomial of polynomial matrix

  • polyMatrixCharPolynomial: the value of char polynomial in a polynomial point

  • polyMatrixCharPolynomial: prints out a text representation of a characteristic polynomial of a polynomial matrix

Details

The characteristic polynom of a polynomial matrix is a polynom with polynomial coefficients.

See Also

polyMatrixCharClass

Examples

Run this code
# NOT RUN {
# numerical matrices
m <- matrix(c(2, 1,
             -1, 0), 2, 2, byrow=TRUE)
charpolynom(m)
# }

Run the code above in your browser using DataLab