Cody

Solution 2041247

Submitted on 1 Dec 2019
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
r = [44.28, 60.99]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

Assertion failed.

2   Pass
r = [38.33, 57.67]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

3   Pass
r = [0.98, 23.99]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

4   Fail
r = [27.07, 95.94]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

Assertion failed.

5   Pass
r = [ -7.45, 7.14]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

6   Pass
r = [43.19, 2.87]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

7   Pass
r = [19.39, 16.79]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

8   Pass
r = [48.72, 71.27]; y_correct = 1; assert(inOrOut(p,r) == y_correct);

9   Fail
r = [-6.42, 68.20]; y_correct = 0; assert(inOrOut(p,r) == y_correct);

Assertion failed.

10   Pass
r = [20.03, 47.11]; y_correct = 1; assert(inOrOut(p,r) == y_correct);