This solution is outdated. To rescore this solution, sign in.
Test | Status | Code Input and Output |
---|---|---|
1 | Fail |
x = -5; n = 3;
y_correct = 8.946043924176486;
assert(isequal(your_fcn_name(x,n),y_correct))
a =
1 2 3
b =
0.8550 + 1.4809i
s =
0.8550 + 1.4809i
|
2 | Fail |
x = 1; n = 10;
y_correct = 10;
assert(isequal(your_fcn_name(x,n),y_correct))
a =
1 2 3 4 5 6 7 8 9 10
b =
1
s =
1
|
3238 Solvers
495 Solvers
401 Solvers
485 Solvers
55 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!