Cody

Solution 1983056

Submitted on 20 Oct 2019 at 6:55 by Nikolaos Nikolaou
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   Pass
a = 1; b= 1; c=1; d=1969; vec=[1 1 1]; y_correct = false; assert(isequal(parallel2plane(a,b,c,d,vec),y_correct))

is = 3 isparallel = logical 0

2   Pass
a = 1; b= 1; c=1; d=1969; vec=[0 -1492 1492]; y_correct = true; assert(isequal(parallel2plane(a,b,c,d,vec),y_correct))

is = 0 isparallel = logical 1

3   Pass
a = 1; b= 2; c=3; d=1969; vec=[0 -1492 1492]; y_correct = false; assert(isequal(parallel2plane(a,b,c,d,vec),y_correct))

is = 1492 isparallel = logical 0

4   Pass
a = 1; b= 2; c=3; d=1969; vec=[1 0 -1/3]; y_correct = true; assert(isequal(parallel2plane(a,b,c,d,vec),y_correct))

is = 0 isparallel = logical 1

5   Pass
a = 0; b= 5; c=7; d=1969; vec=[0 49 -35]; y_correct = true; assert(isequal(parallel2plane(a,b,c,d,vec),y_correct))

is = 0 isparallel = logical 1