Cody

Solution 2105823

Submitted on 26 Jan 2020 at 5:42 by Asif Newaz
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
p=[5,7,2]; q=[4,1,9]; y_correct = 0; assert(isequal(ortho_circle(p,q),y_correct))

a = 5 7 b = 4 1 d1 = 37.0000 d2 = 85

2   Pass
p=[4,3,2]; q=[0,1,4]; y_correct = 1; assert(isequal(ortho_circle(p,q),y_correct))

a = 4 3 b = 0 1 d1 = 20.0000 d2 = 20

3   Pass
p=[4,3,2]; q=[2,1,9]; y_correct = 0; assert(isequal(ortho_circle(p,q),y_correct))

a = 4 3 b = 2 1 d1 = 8.0000 d2 = 85

4   Pass
p=[1,1,4]; q=[5,5,4]; y_correct = 1; assert(isequal(ortho_circle(p,q),y_correct))

a = 1 1 b = 5 5 d1 = 32.0000 d2 = 32