Cody

Solution 1575862

Submitted on 5 Jul 2018 by David Verrelli
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
x = [3 -2 -4]; y_correct = [ 1.5352 -0.8685]; assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)

y = 1.5352 -0.8685

2   Pass
x = [1 2 1]; y_correct = [-1;-1]; assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)

y = -1 -1

3   Pass
x = [1 2 2]; y_correct = [ -1.0000 + 1.0000i -1.0000 - 1.0000i]; assert(abs(sum(your_fcn_name(x)-y_correct))<0.001)

y = -1.0000 + 1.0000i -1.0000 - 1.0000i