Two blocks, which have masses
and
, slide along a frictionless, semi-infinite track bounded by a stationary wall. Initially block 2 is not moving, and block 1 moves to the left with speed
. All of the collisions are elastic.
Write a function to count the collisions between the two blocks and block 2 and the wall. For example, if the blocks each have mass of 1 kg and block 1 initially moves to the left at 0.5 m/s, there will be three collisions: the initial collision, a collision between block 2 and the wall, and a final collision between the blocks.
Solution Stats
Problem Comments
4 Comments
Solution Comments
Show comments
Loading...
Problem Recent Solvers8
Suggested Problems
-
14369 Solvers
-
452 Solvers
-
Back to basics 12 - Input Arguments
626 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
560 Solvers
-
Rotate and display numbered tile
386 Solvers
More from this Author328
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
Chris, I was just thinking of posting this problem, after something popped up in my social media feed awhile ago. But you beat me to it haha!
I bet I know what you saw! It was fascinating.
It was!
Fascinating, indeed --- and I should thank you both for the pointer, since without this problem and your preceding comments, I wouldn't have seen that "something"!