Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a=1;
n=1;
y_correct=1;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
2 | Pass |
a=10;
n=1;
y_correct=1;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
3 | Pass |
a=2;
n=10;
y_correct=1.4142;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
4 | Pass |
a=4;
n=10;
y_correct=2;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
5 | Pass |
a=0.25;
n=10;
y_correct=0.5;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
6 | Pass |
a=30;
n=4;
y_correct=6.0795;
assert(abs(Babylonian(a,n)-y_correct)<0.001);
|
Find the largest value in the 3D matrix
1056 Solvers
Implement simple rotation cypher
943 Solvers
Calculate the area of a triangle between three points
876 Solvers
117 Solvers
147 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!