charpolynom {polyMatrix}R Documentation

Characteristic polynomial of a matrix

Description

Characteristic polynomial of a matrix

Usage

charpolynom(x)

## S4 method for signature 'matrix'
charpolynom(x)

## S4 method for signature 'polynomial'
charpolynom(x)

## S4 method for signature 'polyMatrix'
charpolynom(x)

## S4 method for signature 'polyMatrixCharPolynomial,ANY'
x[[i]]

## S4 method for signature 'polyMatrixCharPolynomial'
degree(x)

## S4 method for signature 'polyMatrixCharPolynomial'
predict(object, newdata)

## S4 method for signature '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

Details

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

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)

See Also

polyMatrixCharClass

Examples


# numerical matrices
m <- matrix(c(2, 1,
             -1, 0), 2, 2, byrow=TRUE)
charpolynom(m)

[Package polyMatrix version 0.9.16 Index]