Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
%%
[x,y]=room_bounce(0,0,1,0,1,1,0.1);
assert(isequal(round(x*1000)/1000,0.51))
assert(isequal(round(y*1000)/1000,0))
|
2 | Pass |
%%
[x,y]=room_bounce(0,0,1,0,0.5,1,0.1);
assert(isequal(round(x*1000)/1000,0.49))
assert(isequal(round(y*1000)/1000,0))
|
3 | Pass |
%%
[x,y]=room_bounce(0.1,0,1,pi/4,0.1,1,0.1);
assert(isequal(round(x*1000)/1000,0.061))
assert(isequal(round(y*1000)/1000,0.361))
|
4 | Pass |
%%
[x,y]=room_bounce(0.1,0,10,pi/10,0.3,0.6,0.1);
assert(isequal(round(x*1000)/1000,0.01))
assert(isequal(round(y*1000)/1000,0.155))
|
5 | Pass |
%%
[x,y]=room_bounce(1,1,10,-pi/7,2,5,0.01);
assert(isequal(round(x*1000)/1000,0.366))
assert(isequal(round(y*1000)/1000,0.219))
|
Remove all the words that end with "ain"
1292 Solvers
2183 Solvers
Matrix with different incremental runs
106 Solvers
Back to basics 22 - Rotate a matrix
763 Solvers
Find out missing number from a vector of 9 elements
245 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!