% SySc 512: Quant Meth: Homework 3.2, Eigenvalues and eigenvectors
clear all
A = [ 1   2   -1
    [ 0   1   0]
    [ 3   -1  2]];
B = [ 1   2   3
    [ 1   1   2]
    [ 0   1   2]];
C = [ 2   1   1
    [ 0   1   -1]
    [ 4   2   2]];
prob2a = A+4*B*C

prob2bA = det(A)
prob2bB = det(B)
prob2bC = det(C)

prob2cA = inv(A)
prob2cB = inv(B)
prob2cC = inv(C)

prob2d = A^3

[evectB evalB] = eig(B)
