Cody

Solution 2560047

Submitted on 15 Jun 2020
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
r = 1; y_correct = 0.8584; assert(abs(inscribed_circle(r)-y_correct)<0.01)

x = 4 a = 4.1888

Assertion failed.

2   Fail
r = 5; y_correct = 21.4602; assert(abs(inscribed_circle(r)-y_correct)<0.01)

x = 100 a = 523.5988

Assertion failed.

3   Pass
r = 0; y_correct = 0; assert(isequal(inscribed_circle(r),y_correct))

x = 0 a = 0

4   Fail
r = 12.1; y_correct = 125.6794; assert(abs(inscribed_circle(r)-y_correct)<0.01)

x = 585.6400 a = 7.4207e+03

Assertion failed.

Suggested Problems

More from this Author148