Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 1;
y_ok = 1.12;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.120000000000000
|
2 | Pass |
n = 2;
y_ok = 1.1236;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.123600000000000
|
3 | Pass |
n = 12;
y_ok = 1.126825030132;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.126825030131970
|
4 | Pass |
n = 52;
y_ok = 1.127340987167;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.127340987166906
|
5 | Pass |
n = 365;
y_ok = 1.127474615638;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.127474615638400
|
6 | Pass |
n = 31536000;
y_ok = 1.1274968514306000;
assert(abs(compound(n)-y_ok)<1e-9);
y =
1.127496852242145
|
Find all elements less than 0 or greater than 10 and replace them with NaN
13046 Solvers
3111 Solvers
Back to basics 20 - singleton dimensions
254 Solvers
432 Solvers
construct matrix with identical rows
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!