Cody

Problem 2017. Side of an equilateral triangle

Solution 2028657

Submitted on 20 Nov 2019 by Sreelekshmi Seethalekshmi Amma
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; x_correct = 2/sqrt(sqrt(3)); tolerance = 1e-12; assert(abs( side_length(A) - x_correct ) < tolerance)

x = 1.5197

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

x = 2

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

x = 2.1491

Suggested Problems

More from this Author10