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)
|
Return the largest number that is adjacent to a zero
3749 Solvers
Remove any row in which a NaN appears
6826 Solvers
Remove the polynomials that have positive real elements of their roots.
629 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Getting the indices from a vector
3206 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!