Cody

Solution 2193294

Submitted on 5 Apr 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
P=[16,20]; Q=[41,120]; a=-1; b=3; p=127; y_correct = [86,81]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

2   Fail
P=[16,20]; Q=[16,20]; a=-1; b=3; p=127; y_correct = [97,81]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

3   Fail
P=[97,81]; Q=[97,81]; a=-1; b=3; p=127; y_correct = [57,10]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

4   Fail
P=[3,6]; Q=[80,10]; a=2; b=3; p=97; y_correct = [80,87]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

5   Fail
P=[1,2]; Q=[1,2]; a=-7; b=10; p=487; y_correct = [486,483]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

6   Fail
P=[1,2]; Q=[486,483]; a=-7; b=10; p=487; y_correct = [9,461]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.

7   Fail
P=[9,461]; Q=[9,461]; a=-7; b=10; p=487; y_correct = [285,417]; assert(isequal(pointAdd(P,Q,a,b,p),y_correct))

Assertion failed.