Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
p= 1;
y_correct = [1];
assert(isequal( seq_wave(p),y_correct))
a =
1
b =
1
c =
2
|
2 | Pass |
%%
p= 1;
y_correct = [2];
[~,~, a]=seq_wave(p)
assert(isequal(a ,y_correct))
a =
1
b =
1
c =
2
a =
2
|
3 | Pass |
%%
p= 8.25;
[a,b,c]=seq_wave(p);
assert(isequal(a ,8.25))
assert(isequal(b ,8.25))
assert(isequal(c ,16.5))
a =
8.2500
b =
8.2500
c =
16.5000
|
4 | Pass |
%%
p= 3.5;
[a,b,c]=seq_wave(p);
assert(isequal(a ,3.5))
assert(isequal(b ,3.5))
assert(isequal(c ,7))
a =
3.5000
b =
3.5000
c =
7
|
1421 Solvers
All your base are belong to us
463 Solvers
Project Euler: Problem 2, Sum of even Fibonacci
835 Solvers
306 Solvers
669 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!