Cody

Solution 1113067

Submitted on 31 Jan 2017
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 = [3 4 5]; y_correct = 2.5; assert(isequal(circle_radius(x),y_correct))

a = 3 b = 4 c = 5 alpha = 36.8699 y = 2.5000

Assertion failed.

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

a = 3 b = 4 c = 3 alpha = 48.1897 y = 2.0125

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

a = 1 b = 2 c = 1.7321 alpha = 30.0000 y = 1.0000

Suggested Problems

More from this Author39