Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
n=10;
d=6;
assert(spiro(n,d)<365*pi)
v =
1.1310e+03
|
2 | Pass |
n=10;
d=6;
assert(spiro(n,d)>355*pi)
v =
1.1310e+03
|
3 | Pass |
n=125;
d=1;
assert(spiro(n,d)<25*pi)
v =
65.4498
|
4 | Pass |
n=120;
d=1;
assert(spiro(n,d)>19*pi)
v =
62.8319
|
5 | Pass |
n=12;
d=1;
assert(spiro(n,d)<3*pi)
v =
6.2832
|
6 | Pass |
n=11;
d=1;
assert(spiro(n,d)>pi)
v =
5.7596
|
Program an exclusive OR operation with logical operators
639 Solvers
316 Solvers
Flip the main diagonal of a matrix
506 Solvers
Generate a string like abbcccddddeeeee
234 Solvers
3063 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!