Cody

# Problem 43032. Geometrical meaning of determinant

Solution 1696837

Submitted on 19 Dec 2018
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
X=[0,1]'; Y=[1,0]'; V = 1; assert(isequal(parallelogram_volume(X,Y),V))

Error using cross (line 25) A and B must be of length 3 in the dimension in which the cross product is taken. Error in parallelogram_volume (line 2) V=cross(X,Y) Error in Test1 (line 3) assert(isequal(parallelogram_volume(X,Y),V))

2   Fail
X=[1,0]'; Y=[0,1]'; V = 1; assert(isequal(parallelogram_volume(X,Y),V))

Error using cross (line 25) A and B must be of length 3 in the dimension in which the cross product is taken. Error in parallelogram_volume (line 2) V=cross(X,Y) Error in Test2 (line 3) assert(isequal(parallelogram_volume(X,Y),V))

3   Fail
X=[1,0]'; Y=[1,0]'; V = 0; assert(isequal(parallelogram_volume(X,Y),V))

Error using cross (line 25) A and B must be of length 3 in the dimension in which the cross product is taken. Error in parallelogram_volume (line 2) V=cross(X,Y) Error in Test3 (line 3) assert(isequal(parallelogram_volume(X,Y),V))

4   Fail
X=[1,0]'; Y=[9,0]'; V = 0; assert(isequal(parallelogram_volume(X,Y),V))

Error using cross (line 25) A and B must be of length 3 in the dimension in which the cross product is taken. Error in parallelogram_volume (line 2) V=cross(X,Y) Error in Test4 (line 3) assert(isequal(parallelogram_volume(X,Y),V))

5   Fail
X=[1,0,0]'; Y=[0,1,0]'; Z=[0,0,1]'; V = 1; assert(isequal(parallelogram_volume(X,Y,Z),V))

V = 0 0 1

Conversion to logical from cell is not possible. Error in parallelogram_volume (line 3) if varargin Error in Test5 (line 3) assert(isequal(parallelogram_volume(X,Y,Z),V))

6   Fail
X=[1,0,8]'; Y=[2,1,0]'; Z=[0,4,1]'; V = 65; assert(isequal(parallelogram_volume(X,Y,Z),V))

V = -8 16 1

Conversion to logical from cell is not possible. Error in parallelogram_volume (line 3) if varargin Error in Test6 (line 3) assert(isequal(parallelogram_volume(X,Y,Z),V))