Cody

Solution 2316568

Submitted on 21 May 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
x = 1; y_correct = 1/2; assert(abs(square_area(x)-y_correct)<1e-4)

y = 1

Assertion failed.

2   Fail
x = 2.828427; y_correct = 4; assert(abs(square_area(x)-y_correct)<1e-4)

y = 8.0000

Assertion failed.

3   Fail
x = 2; y_correct = 2; assert(abs(square_area(x)-y_correct)<1e-4)

y = 4

Assertion failed.

4   Fail
x = 10; y_correct = 50; assert(abs(square_area(x)-y_correct)<1e-4)

y = 100

Assertion failed.

5   Fail
x = 5; y_correct = 12.5; assert(abs(square_area(x)-y_correct)<1e-4)

y = 25

Assertion failed.