Well, this was a bit embarrasing...
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
%%
a = 1;
b = 2;
c_correct = sqrt(5);
tolerance = 1e-12 ;
assert(abs(hypotenuse(a,b)-c_correct)<tolerance);
Error: Assertion failed.
|
2 | Fail |
%%
a = 3;
b = 4;
c_correct = 5;
tolerance = 1e-12 ;
assert(abs(hypotenuse(a,b)-c_correct)<tolerance);
Error: Assertion failed.
|
3 | Fail |
%%
a = 5;
b = 12;
c_correct = 13;
tolerance = 1e-12 ;
assert(abs(hypotenuse(a,b)-c_correct)<tolerance);
Error: Assertion failed.
|
468 Solvers
How long is the longest prime diagonal?
280 Solvers
268 Solvers
684 Solvers
A Simple Tide Gauge with MATLAB
300 Solvers