Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
d=200; b=100; p=0.5;
mm = telescope(d,b,p)
mm_correct = 21
assert(abs(round(abs(mm))- mm_correct)<1000*eps)
mm_correct =
21
mm =
21
mm_correct =
21
|
2 | Pass |
%%
d=100; b=200; p=0.5;
mm = telescope(d,b,p)
mm_correct = 21
assert(abs(round(abs(mm))- mm_correct)<1000*eps)
mm_correct =
21
mm =
21
mm_correct =
21
|
3 | Pass |
%%
d=100; b=100; p=0.5;
mm = telescope(d,b,p)
mm_correct = 0
assert(round(abs(mm))== mm_correct)
mm_correct =
0
mm =
0
mm_correct =
0
|
Four quadrant inverse tangent function.
43 Solvers
199 Solvers
96 Solvers
"Low : High - Low : High - Turn around " -- Create a subindices vector
320 Solvers
Create a vector whose elements depend on the previous element
391 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!