This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1/2;
assert(abs(square_area(x)-y_correct)<1e-4)
|
2 | Pass |
x = 2.828427;
y_correct = 4;
assert(abs(square_area(x)-y_correct)<1e-4)
|
3 | Pass |
x = 2;
y_correct = 2;
assert(abs(square_area(x)-y_correct)<1e-4)
|
4 | Pass |
x = 10;
y_correct = 50;
assert(abs(square_area(x)-y_correct)<1e-4)
|
5 | Pass |
x = 5;
y_correct = 12.5;
assert(abs(square_area(x)-y_correct)<1e-4)
|
Return the 3n+1 sequence for n
5207 Solvers
Remove all the words that end with "ain"
1029 Solvers
13820 Solvers
Calculate distance travelled when given radius and rotations
132 Solvers
183 Solvers