%Exercise 2

x = [-1 0 -1];
u = [1 2 3];
dot(u,x); %-4
cross(u,x); %[-2 -2 -2]
transpose(u); %[1;2;3]
x*transpose(u); %-4
u*transpose(x); %-4
transpose(u)*x %[-1 0 -1]*(1:3)
