Cody

Problem 45334. Area-02

Solution 2685812

Submitted on 13 Jul 2020 by JessicaR
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)

y = 0.0858

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

y = 10.3802

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

y = 181.3663

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

y = 0

Suggested Problems

More from this Author149

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!