Cody

# Problem 44847. Say type of roots in quadratic equation

Solution 2009254

Submitted on 8 Nov 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
x = [1 1 1]; y_correct = 'Complex'; assert(isequal(your_fcn_name(x),y_correct))

M = -0.5000 + 0.8660i -0.5000 - 0.8660i ans = 0.8660 -0.8660

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test1 (line 3) assert(isequal(your_fcn_name(x),y_correct))

2   Fail
x = [1 3 1]; y_correct = 'RealDifferent'; assert(isequal(your_fcn_name(x),y_correct))

M = -2.6180 -0.3820 ans = 0 0

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test2 (line 3) assert(isequal(your_fcn_name(x),y_correct))

3   Fail
x = [1 -4 4]; y_correct = 'RealEqual'; assert(isequal(your_fcn_name(x),y_correct))

M = 2 2 ans = 0 0

Output argument "y" (and maybe others) not assigned during call to "your_fcn_name". Error in Test3 (line 3) assert(isequal(your_fcn_name(x),y_correct))