Problem 58778. Count collisions in an idealized block system
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
Show
1 older comment
ChrisR
on 24 Jul 2023
I bet I know what you saw! It was fascinating.
Dyuman Joshi
on 25 Jul 2023
It was!
Christian Schröder
on 6 Aug 2023
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"!
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Remove all the words that end with "ain"
2431 Solvers
-
Project Euler: Problem 7, Nth prime
1568 Solvers
-
Back to basics 22 - Rotate a matrix
912 Solvers
-
643 Solvers
-
Side of an equilateral triangle
6393 Solvers
More from this Author293
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!