Test Suite flawed: should account for inherent imprecision of floating-point numbers.
Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
d = 20;
y_correct = 20+(10*pi);
assert(isequal(perm_semicircle(d),y_correct))
y =
51.4159
|
2 | Fail |
d = 100;
y_correct = 100+(50*pi);
assert(isequal(perm_semicircle(d),y_correct))
y =
257.0796
|
579 Solvers
351 Solvers
465 Solvers
300 Solvers
305 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!