# polychar¶

## Purpose¶

Computes the characteristic polynomial of a square matrix.

## Format¶

c = polychar(x)
Parameters

x (NxN matrix) – data.

Returns

c ((N+1)x1 vector) –

coefficients of the Nth order characteristic polynomial of x:

$p(x) = c[1]*x^n + c[2]*x^{(n-1)} + ... + c[n]*x + c[n+1];$

## Remarks¶

The coefficient of $$x^n$$ is set to unity ($$c[1]=1$$).

poly.src