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)
|
2 | Pass |
%%
x = 3;
y_correct = 5/2;
tolerance = 1e-12;
assert(abs(rhombus_side(x)-y_correct)<tolerance)
|
3 | Pass |
%%
x = 2;
y_correct = sqrt(13)/2;
tolerance = 1e-12;
assert(abs(rhombus_side(x)-y_correct)<tolerance)
|
Project Euler: Problem 1, Multiples of 3 and 5
1063 Solvers
Back to basics 25 - Valid variable names
253 Solvers
378 Solvers
897 Solvers
Set the array elements whose value is 13 to 0
752 Solvers