Cody

Solution 418759

Submitted on 16 Mar 2014 by try12345
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 = [1 5 8 9 7 4 5]; y_correct = roots(x); assert(isequal(return_root(x),y_correct)) x = [1 0 0 48 50]; y_correct = roots(x); assert(isequal(return_root(x),y_correct)) x = [11 55 4 6 ]; y_correct = roots(x) assert(isequal(return_root(x),y_correct))

y_correct = -4.948792226151728 + 0.000000000000000i -0.025603886924136 + 0.331004790708340i -0.025603886924136 - 0.331004790708340i