Cody

Solution 1689916

Submitted on 10 Dec 2018 by Anthony Mora
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 4 5]; y_correct = 2.5; assert(isequal(circle_radius(x),y_correct))

Aaug = 3.6000 4.8000 9.0000 6.4000 -4.8000 16.0000 Asol = 1.0000 0 2.5000 0 1.0000 0 a = 2.5000 b = 0 y = 2.5000

2   Pass
x = [3 4 3]; y_correct = 2.0125; assert(abs(circle_radius(x)-y_correct)<.0001)

Aaug = 0.6667 5.9628 9.0000 5.3333 -5.9628 0 Asol = 1.0000 0 1.5000 0 1.0000 1.3416 a = 1.5000 b = 1.3416 y = 2.0125

3   Pass
x = [1 2 sqrt(3)]; y_correct = 1.0000; assert(abs(circle_radius(x)-y_correct)<.0001)

Aaug = -0.0000 2.0000 1.0000 3.4641 -2.0000 2.0000 Asol = 1.0000 0 0.8660 0 1.0000 0.5000 a = 0.8660 b = 0.5000 y = 1.0000