Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
x_fixed_point = fixed_point(@(x) 2./(2*x+1),0,5)
assert(abs(0.8923-x_fixed_point)<1e-4)
x_fixed_point =
0.8923
|
2 | Pass |
%%
x_fixed_point = fixed_point(@(x) 2./(2*x+1),0,20)
assert(abs(0.7807-x_fixed_point)<1e-4)
x_fixed_point =
0.7807
|
3 | Pass |
%%
x_fixed_point = fixed_point(@(x) exp(-x),0,2)
assert(abs(0.3679-x_fixed_point)<1e-4)
x_fixed_point =
0.3679
|
4 | Pass |
%%
x_fixed_point = fixed_point(@(x) exp(-x),0,10)
assert(abs(0.5649-x_fixed_point)<1e-4)
x_fixed_point =
0.5649
|
Back to basics 21 - Matrix replicating
1052 Solvers
Return elements unique to either input
550 Solvers
Determine Whether an array is empty
646 Solvers
41 Solvers
484 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!