Solution 1715226

Submitted on 25 Jan 2019 by Binbin Qi
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
assert(isreal(L), 'L must be real');

2   Pass
assert(all(size(L)==[1 3]), 'L must be a 3-element row vector')

3   Pass
assert(abs(L*[P1;1]) < 1e-10, 'Point P1 does not exist on this line');

4   Pass
assert(abs(L*[P2;1]) < 1e-10, 'Point P2 does not exist on this line');