Cody

Problem 45337. Area-03

Solution 3465118

Submitted on 29 Oct 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
a = 1; y_correct = .2929; assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

Assertion failed.

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

Assertion failed.

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

Assertion failed.

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

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

Assertion failed.

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!