Test  Status  Code Input and Output 

1  Fail 
a = [1 0];
b = [0 1];
expected=pi/2;
theta = solve_included_vector_angle(a,b)
assert(0.99*expected.001<=theta && theta<=expected*1.01+.001 )
% Is there a better way to allow tolerances?

2  Fail 
a = [1 1 0];
b = [1 1 2^0.5];
expected=pi/4;
theta = solve_included_vector_angle(a,b)
assert(0.99*expected.001<=theta && theta<=expected*1.01+.001 )
ans =
45
theta =
45

3  Fail 
a = [2 2];
b = [0 1];
expected=pi/4;
theta = solve_included_vector_angle(a,b)
assert(0.99*expected.001<=theta && theta<=expected*1.01+.001 )

4  Fail 
a = [1 1];
b = [4 0];
expected=0.75*pi;
theta = solve_included_vector_angle(a,b)
assert(0.99*expected.001<=theta && theta<=expected*1.01+.001 )

5  Fail 
a = [1 2 3];
b = [1 2 4];
expected=0.161*pi;
theta = solve_included_vector_angle(a,b)
assert(0.99*expected.001<=theta && theta<=expected*1.01+.001 )
ans =
28.9766
theta =
28.9766

Find relatively common elements in matrix rows
605 Solvers
Determine if a Given Number is a Triangle Number
277 Solvers
Sum of diagonal of a square matrix
1106 Solvers
246 Solvers
Check if number exists in vector
1869 Solvers