Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
y_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1;
assert(isequal(Hen(x),y_correct))
|
2 | Pass |
x = 2;
y_correct = 1-1+1-1-1+1+1-1+1-1+1-1+1+1;
assert(isequal(Hen(x),y_correct))
|
Sum all integers from 1 to 2^n
8411 Solvers
Create a square matrix of multiples
383 Solvers
273 Solvers
187 Solvers
Compute LOG(1+X) in natural log
204 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!