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)
|
2 | Pass |
A = sqrt(3);
x_correct = 2;
tolerance = 1e-12;
assert(abs(side_length(A) - x_correct) < tolerance)
|
3 | Pass |
A = 2;
x_correct = 2*sqrt(2)/sqrt(sqrt(3));
tolerance = 1e-12;
assert(abs(side_length(A) - x_correct) < tolerance)
|
Sort a list of complex numbers based on far they are from the origin.
4327 Solvers
Find the alphabetic word product
2321 Solvers
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
511 Solvers
320 Solvers
359 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!