Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n = 3;
t = 0.15;
L_correct = 7;
f_correct = 7;
[L,f] = Britney_Unfolded(n,t)
assert(isequal([L,f],[L_correct,f_correct]))
L =
7
f =
7
|
2 | Pass |
n = 6;
t = 0.02;
L_correct = 45;
f_correct = 63;
[L,f] = Britney_Unfolded(n,t)
assert(isequal([L,f],[L_correct,f_correct]))
L =
45
f =
63
|
3 | Pass |
n = 7;
t = 0.05;
L_correct = 439;
f_correct = 127;
[L,f] = Britney_Unfolded(n,t)
assert(isequal([L,f],[L_correct,f_correct]))
L =
439
f =
127
|
4 | Pass |
n = 10;
t = 0.29;
L_correct = 159686;
f_correct = 1023;
[L,f] = Britney_Unfolded(n,t)
assert(isequal([L,f],[L_correct,f_correct]))
L =
159686
f =
1023
|
5 | Pass |
n = 12;
t = 0.06;
L_correct = 527458;
f_correct = 4095;
[L,f] = Britney_Unfolded(n,t)
assert(isequal([L,f],[L_correct,f_correct]))
L =
527458
f =
4095
|
951 Solvers
387 Solvers
Add a row of zeros on top of a matrix
194 Solvers
486 Solvers
Write a code that will follow the equation y = x * (x + x) * x.
212 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!