Cody

Problem 45337. Area-03

Solution 2136632

Submitted on 22 Feb 2020 by Noriko HOUNOKI
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
a = 1; y_correct = .2929; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

2   Pass
a = 10; y_correct = 2.9289; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

3   Pass
a = 23.6; y_correct = 6.9123; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

4   Pass
a = 0; y_correct = 0; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

5   Pass
a = pi; y_correct = 0.9202; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

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!