Cody

Solution 2178477

Submitted on 27 Mar 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; x_correct = 2/sqrt(sqrt(3)); tolerance = 1e-12; assert(abs( side_length(A) - x_correct ) < tolerance)

a = 2.2500

Assertion failed.

2   Fail
A = sqrt(3); x_correct = 2; tolerance = 1e-12; assert(abs(side_length(A) - x_correct) < tolerance)

a = 3.8971

Assertion failed.

3   Fail
A = 2; x_correct = 2*sqrt(2)/sqrt(sqrt(3)); tolerance = 1e-12; assert(abs(side_length(A) - x_correct) < tolerance)

a = 4.5000

Assertion failed.

Suggested Problems

More from this Author10