Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1
length_correct = 3/sqrt(10);
width_correct = 1/sqrt(10);
[width, length] = findRectangleDimensions(x);
tolerance = 1e-12;
assert( abs(length-length_correct)<tolerance && abs(width-width_correct)<tolerance )
x =
1
a =
0.3162
b =
0.9487
ans =
[]
|
2 | Pass |
x = 2;
width_correct = 2/sqrt(10);
length_correct = 6/sqrt(10);
[width, length] = findRectangleDimensions(x);
tolerance = 1e-12;
assert(abs(length-length_correct)<tolerance && abs(width-width_correct)<tolerance)
a =
0.6325
b =
1.8974
ans =
[]
|
Sum all integers from 1 to 2^n
6316 Solvers
269 Solvers
07 - Common functions and indexing 6
281 Solvers
What is Sum Of all elements of Matrix
215 Solvers
Is this is a Tic Tac Toe X Win?
366 Solvers