Cody

Solution 2142227

Submitted on 27 Feb 2020 by Athi
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
r=1; y_correct = 0.0858; assert(abs(inscribed_circle_2(r)-y_correct)<0.001)

2   Pass
r=11; y_correct = 10.3802; assert(abs(inscribed_circle_2(r)-y_correct)<0.001)

3   Pass
r=45.98; y_correct = 181.3663; assert(abs(inscribed_circle_2(r)-y_correct)<0.001)

4   Pass
r=0; y_correct = 0; assert(abs(inscribed_circle_2(r)-y_correct)<0.001)

Suggested Problems

More from this Author148