Cody

Solution 1979273

Submitted on 16 Oct 2019 at 17:14
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
x = [1 2;3 4]; y_correct = [-2.00000 1.00000; 1.50000 -0.50000]; assert(isequal(your_fcn_name(x),y_correct))

y = -2.000000000000002e+00 1.000000000000001e+00 1.500000000000002e+00 -5.000000000000006e-01

Assertion failed.

2   Fail
x = [0 1; 1 1]; y_correct = [-1.0000e+00 1.0000e+00; 1.0000e+00 -1.1102e-16]; assert(isequal(your_fcn_name(x),y_correct))

y = -1.000000000000000e+00 9.999999999999999e-01 9.999999999999999e-01 -1.665334536937735e-16

Assertion failed.