Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = sqrt(5)/2;
tolerance = 1e-12;
assert(abs(rhombus_side(x)-y_correct)<tolerance)
y =
1.1180
|
2 | Pass |
x = 3;
y_correct = 5/2;
tolerance = 1e-12;
assert(abs(rhombus_side(x)-y_correct)<tolerance)
y =
2.5000
|
3 | Pass |
x = 2;
y_correct = sqrt(13)/2;
tolerance = 1e-12;
assert(abs(rhombus_side(x)-y_correct)<tolerance)
y =
1.8028
|
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
5112 Solvers
343 Solvers
390 Solvers
2050 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!