Cody

# Problem 45337. Area-03

Solution 3465108

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)

Unrecognized function or variable 'x'. Error in inscribed_circle_3 (line 2) y = (sqrt(2)/4)*x; Error in Test1 (line 3) assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

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

Unrecognized function or variable 'x'. Error in inscribed_circle_3 (line 2) y = (sqrt(2)/4)*x; Error in Test2 (line 3) assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

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

Unrecognized function or variable 'x'. Error in inscribed_circle_3 (line 2) y = (sqrt(2)/4)*x; Error in Test3 (line 3) assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

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

Unrecognized function or variable 'x'. Error in inscribed_circle_3 (line 2) y = (sqrt(2)/4)*x; Error in Test4 (line 3) 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)

Unrecognized function or variable 'x'. Error in inscribed_circle_3 (line 2) y = (sqrt(2)/4)*x; Error in Test5 (line 3) assert(abs(inscribed_circle_3(a)-y_correct)<0.001)

### Community Treasure Hunt

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

Start Hunting!