summaryrefslogtreecommitdiff
path: root/260/CH5/EX5.2/5_2.sce
blob: 06c2d345555fcbf52d7247fd301b0f49a2e92d15 (plain)
1
2
3
4
5
6
7
8
9
10
11
//Eg-5.2
//pg-216

clear
clc

A=[1 -1 4;3 2 -1;2 1 -1];

if (A^3)-2*(A^2)-(5*A)+6*eye(3,3)==zeros(3,3) then
    disp("cayley-hamiliton theorem was verified")
end