Example 1.3.6

> restart;

> with(linalg):

Warning, new definition for norm

Warning, new definition for trace

> A:=vector(3, [2,-1,2]);

[Maple Math]

> B:=vector(3, [1,-1,0]);

[Maple Math]

> a:=innerprod(A,B);

[Maple Math]

> b:=norm(A, 2);

[Maple Math]

> c:=norm(B, 2);

[Maple Math]

> theta:= arccos(a/(b*c));

[Maple Math]

>