Problem 1280. Elastic Collision 001: 1-D
Solve Conservation of Momentum and Kinetic Energy Equations for a point elastic collision.
m1*u1+m2*u2=m1*v1+m2*v2
m1*u1^2+m2*u2^2=m1*v1^2+m2*v2^2
Elastic Collision Gifs from wikipedia. [used < < copy image location > >]
Given [m1,u1,m2,u2] solve for v1 and v2 under ideal elastic collision conditions.
Input: [10, 1, 10, 0]
Output: [0 1] v1 and v2
Future: 2-D Elastic equal masses, 2-D Elastic equal masses with find contact, Relativistic Elastic, and 3-D Elastic Equal Masses
Solution Stats
Problem Comments
-
3 Comments
William
on 29 Dec 2018
The abs() needs to be included in all of the test suite checks, not just the first one.
Nikolaos Nikolaou
on 5 Feb 2020
Test suite is broken again , plz fix :)
goc3
on 28 Sep 2020
Each test case now includes abs().
Solution Comments
Show commentsProblem Recent Solvers61
Suggested Problems
-
541 Solvers
-
Getting the row and column location from a matrix
286 Solvers
-
567 Solvers
-
Calculate the Number of Sign Changes in a Row Vector (No Element Is Zero)
746 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
379 Solvers
More from this Author308
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!