# 0.24 Phy1215: energy -- elastic and inelastic collisions in two  (Page 7/9)

 Page 7 / 9

The output

The output for this scenario is shown in Figure 4 .

Figure 4 . Output for an elastic collision between two pucks on friction-free ice.
```Start Script u1x = 2.00 m/su1y = 0.00 m/s u2x = 0.00 m/su2y = 0.00 m/s v1x = 0.50 m/sv1y = 0.87 m/s v2x = 1.50 m/sv2y = -0.866 m/s u1 = 2.00 m/su2 = 0.00 m/s v1 = 1.00 m/s=============================== v2 = 1.73 m/sb2 = -30.00 degrees ===============================moux = 2.00 Kg*m/s movx = 2.00 Kg*m/smouy = 0.00 Kg*m/s movy = 0.00 Kg*m/smou = 2.00 Kg*m/s mov = 2.00 Kg*m/s=============================== End Script```

Hopefully the comments in the script will be sufficient to explain the solution to this problem.

## Perfectly inelastic collision between objects with odd angles

Listing 4 provides the description and the solution to a scenario involving a perfectly inelastic collision between two objects in a friction-free environmentmoving at odd angles. By odd angles, I mean that neither object is moving along either the x-axis or the y-axis, either before or after the collision.

Listing 4 . Perfectly inelastic collision between objects with odd angles.
```<!---------------- File JavaScript03.html ---------------------><html><body><script language="JavaScript1.3">/* Obj1 with a mass of 1 Kg and an initial velocity of 3000 m/sin a direction 67 degrees north of east collides in a perfectly inelastic manner with Obj2, whose mass is also 1 Kg and whoseinitial velocity is 2000 m/s in a direction 45 degrees north of east. Calculate (1) the angle of motion of the combined bodies,and (2) the magnitude of the momentum of the combined bodies after the collision.Using conservation of momentum alone, we have two equations, allowing us to solve for two unknowns.m1*u1x + m2*u2x = m1*v1x + m2*v2x m1*u1y + m2*u2y = m1*v1y + m2*v2yVariables: m1, m2, u1, u2, v1, v2, a1, a2, b1, b2*/ document.write("Start Script</br>"); var m1 = 1;//kgvar m2 = 1;//kg var u1 = 3000;//meters per secondvar u2 = 2000;//meters per second var v1;//unknown -- to be foundvar v2;//unknown -- to be found var a1 = 67;//degreesvar a2 = 45;//degrees var b1;//unknown -- to be foundvar b2;//unknown -- to be found //Perfectly inelastic collision so v2=v1 and b2=b1//Convert angles to radians A1 = a1*Math.PI/180;A2 = a2*Math.PI/180; //B1 = b1*Math.PI/180;//unknown //B2 = b2*Math.PI/180;//unknown//Compute the x and y components of velocity u1x = u1*Math.cos(A1)u1y = u1*Math.sin(A1) u2x = u2*Math.cos(A2)u2y = u2*Math.sin(A2) //v1x = v1*Math.cos(B1)//unknown//v1y = v1*Math.sin(B1)//unknown //v2x = v2*Math.cos(B2)//unknown//v2y = v2*Math.sin(B2)//unknown /*For the special case of m2=m1=1 and v2=v1 (perfectly inelastic collision) we can simplify the equations to the following:u1x + u2x = 2*v1x u1y + u2y = 2*v1y*/ //Rearranging terms yieldsv1x = (u1x + u2x)/2 v1y = (u1y + u2y)/2//Knowing the x and y components of the final velocity, we can // find the angle and magnitude asb1 = getAngle(v1x,v1y); v1 = Math.sqrt(v1x*v1x + v1y*v1y);//Compute the momentum after the collision var Px = v1x*(m1 + m2);var Py = v1y*(m1 + m2); var Pmag = Math.sqrt(Px*Px + Py*Py);//Display the results document.write("b1 = " + b1.toFixed(1) + " degrees</br>"); document.write("v1 = " + v1.toFixed(0) + " m/s</br>"); document.write("v1x = " + v1x.toFixed(0) + " m/s</br>"); document.write("v1y = " + v1y.toFixed(0) + " m/s</br>"); document.write("Px = " + Px.toFixed(0) + " Kg*m/s</br>"); document.write("Py = " + Py.toFixed(0) + " Kg*m/s</br>"); document.write("Pmag = " + Pmag.toFixed(0) + " Kg*m/s</br>"); document.write("==============================="+ "</br>"); //Check the answer for perfect inelastic collisionv2x = v1x; v2y = v1y;v2 = v1; var moux = u1x + u2x;var movx = v1x + v2x; var mouy = u1y + u2y;var movy = v1y + v2y; var mou = Math.sqrt(moux * moux + mouy * mouy);var mov = Math.sqrt(movx * movx + movy * movy); document.write("moux = " + moux.toFixed(0) + " Kg*m/s</br>"); document.write("movx = " + movx.toFixed(0) + " Kg*m/s</br>"); document.write("mouy = " + mouy.toFixed(0) + " Kg*m/s</br>"); document.write("movy = " + movy.toFixed(0) + " Kg*m/s</br>"); document.write("mou = " + mou.toFixed(0) + " Kg*m/s</br>"); document.write("mov = " + mov.toFixed(0) + " Kg*m/s</br>"); document.write("==============================="+ "</br>"); //The purpose of this function is to receive the adjacent// and opposite side values for a right triangle and to // return the angle in degrees in the correct quadrant.function getAngle(x,y){ if((x == 0)&&(y == 0)){ //Angle is indeterminate. Just return zero.return 0; }else if((x == 0)&&(y>0)){ //Avoid divide by zero denominator.return 90; }else if((x == 0)&&(y<0)){ //Avoid divide by zero denominator.return -90; }else if((x<0)&&(y>= 0)){ //Correct to second quadrantreturn Math.atan(y/x)*180/Math.PI + 180; }else if((x<0)&&(y<= 0)){ //Correct to third quadrantreturn Math.atan(y/x)*180/Math.PI + 180; }else{//First and fourth quadrants. No correction required. return Math.atan(y/x)*180/Math.PI;}//end else }//end function getAngledocument.write("End Script");</script></body></html>```

#### Questions & Answers

how can chip be made from sand
Eke Reply
is this allso about nanoscale material
Almas
are nano particles real
Missy Reply
yeah
Joseph
Hello, if I study Physics teacher in bachelor, can I study Nanotechnology in master?
Lale Reply
no can't
Lohitha
where is the latest information on a no technology how can I find it
William
currently
William
where we get a research paper on Nano chemistry....?
Maira Reply
nanopartical of organic/inorganic / physical chemistry , pdf / thesis / review
Ali
what are the products of Nano chemistry?
Maira Reply
There are lots of products of nano chemistry... Like nano coatings.....carbon fiber.. And lots of others..
learn
Even nanotechnology is pretty much all about chemistry... Its the chemistry on quantum or atomic level
learn
Google
da
no nanotechnology is also a part of physics and maths it requires angle formulas and some pressure regarding concepts
Bhagvanji
hey
Giriraj
Preparation and Applications of Nanomaterial for Drug Delivery
Hafiz Reply
revolt
da
Application of nanotechnology in medicine
has a lot of application modern world
Kamaluddeen
yes
narayan
what is variations in raman spectra for nanomaterials
Jyoti Reply
ya I also want to know the raman spectra
Bhagvanji
I only see partial conversation and what's the question here!
Crow Reply
what about nanotechnology for water purification
RAW Reply
please someone correct me if I'm wrong but I think one can use nanoparticles, specially silver nanoparticles for water treatment.
Damian
yes that's correct
Professor
I think
Professor
Nasa has use it in the 60's, copper as water purification in the moon travel.
Alexandre
nanocopper obvius
Alexandre
what is the stm
Brian Reply
is there industrial application of fullrenes. What is the method to prepare fullrene on large scale.?
Rafiq
industrial application...? mmm I think on the medical side as drug carrier, but you should go deeper on your research, I may be wrong
Damian
How we are making nano material?
LITNING Reply
what is a peer
LITNING Reply
What is meant by 'nano scale'?
LITNING Reply
What is STMs full form?
LITNING
scanning tunneling microscope
Sahil
how nano science is used for hydrophobicity
Santosh
Do u think that Graphene and Fullrene fiber can be used to make Air Plane body structure the lightest and strongest. Rafiq
Rafiq
what is differents between GO and RGO?
Mahi
what is simplest way to understand the applications of nano robots used to detect the cancer affected cell of human body.? How this robot is carried to required site of body cell.? what will be the carrier material and how can be detected that correct delivery of drug is done Rafiq
Rafiq
if virus is killing to make ARTIFICIAL DNA OF GRAPHENE FOR KILLED THE VIRUS .THIS IS OUR ASSUMPTION
Anam
analytical skills graphene is prepared to kill any type viruses .
Anam
Any one who tell me about Preparation and application of Nanomaterial for drug Delivery
Hafiz
what is Nano technology ?
Bob Reply
write examples of Nano molecule?
Bob
The nanotechnology is as new science, to scale nanometric
brayan
nanotechnology is the study, desing, synthesis, manipulation and application of materials and functional systems through control of matter at nanoscale
Damian
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

### Read also:

#### Get Jobilize Job Search Mobile App in your pocket Now!

Source:  OpenStax, Accessible physics concepts for blind students. OpenStax CNX. Oct 02, 2015 Download for free at https://legacy.cnx.org/content/col11294/1.36
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Accessible physics concepts for blind students' conversation and receive update notifications? By Anonymous User By OpenStax By OpenStax By Cameron Casey By OpenStax By Brooke Delaney By Nick Swain By John Gabrieli By OpenStax By Brooke Delaney