Cody

Problem 2080. surface of parallelogram

Solution 2131259

Submitted on 17 Feb 2020
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
p1=[1 0 0]; p2=[0 1 0]; y_correct = 1; assert(isequal(paralellogram_surface(p1, p2),y_correct))

Error in solution: Line: 2 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

2   Fail
p1=[-1 -2 7]; p2=[0 0 0]; y_correct = 0; assert(isequal(paralellogram_surface(p1, p2),y_correct))

Error in solution: Line: 2 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

3   Fail
p1=[-1 -2 7]; p2=[2 4 -14]; y_correct = 0; assert(isequal(paralellogram_surface(p1, p2),y_correct))

Error in solution: Line: 2 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.

4   Fail
p1=[-1 -2 7]; p2=[1 1 1]; y_correct = 12.0830459735; assert(abs(paralellogram_surface(p1, p2)-y_correct)<=1e-8)

Error in solution: Line: 2 Column: 61 Invalid expression. When calling a function or indexing a variable, use parentheses. Otherwise, check for mismatched delimiters.