% MATLAB for Recitation 3
% 1.050
% September 20-21, 2007
% -----------------------------------------------------------------

clear
close all
clc
format short

a = sqrt(2)/2;

A = [0 a 1 0 0 0 0 0
    -1 -a 0 0 0 0 0 0
    0 0 -1 0 0 0 0 0
    0 0 0 0 -1 0 0 0
    0 0 0 1 0 1 0 0
    1 0 0 0 0 0 1 0
    0 -a 0 -1 0 0 0 0
    0 a 0 0 1 0 0 1];

B = [-1 0 0 0 0 0 0 0]';

sol = inv(A)*B
