Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
x = 1;
n=1;
y_correct = 1;
assert((nroot(n,x)-y_correct)<0.001)
ans =
1
|
2 | Pass |
x = 1;
n=2;
y_correct = 1;
assert((nroot(n,x)-y_correct)<0.001)
ans =
1
|
3 | Pass |
x = 1;
n=2;
y_correct = 1;
assert((nroot(n,x)-y_correct)<0.001)
ans =
1
|
4 | Pass |
x = 10;
n=2;
y_correct = 3.1623;
assert((nroot(n,x)-y_correct)<0.001)
ans =
3.1623
|
5 | Pass |
x = 10;
n=10;
y_correct = 1.2589;
assert((nroot(n,x)-y_correct)<0.001)
ans =
1.2589
|
6 | Pass |
x = 100;
n=100;
y_correct = 1.0471;
assert((nroot(n,x)-y_correct)<0.001)
ans =
1.0471
|
Back to basics 8 - Matrix Diagonals
781 Solvers
Try 1.5.4: Celsius to Fahrenheit
609 Solvers
2143 Solvers
Back to basics - mean of corner elements of a matrix
297 Solvers
177 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!