WLJS LogoWLJS Notebook

IndefiniteMatrixQ

IndefiniteMatrixQ[m] gives True if m is explicitly indefinite (has both positive and negative eigenvalues), and False otherwise.

Examples

Test for indefinite matrix:

IndefiniteMatrixQ[{{1, 0}, {0, -1}}]
(* True *)

Definite matrix:

IndefiniteMatrixQ[{{1, 0}, {0, 1}}]
(* False *)

Please visit the official Wolfram Language Reference for more details.

On this page