summaryrefslogtreecommitdiff
path: root/3845/CH8/EX8.7/Ex8_7.sce
diff options
context:
space:
mode:
Diffstat (limited to '3845/CH8/EX8.7/Ex8_7.sce')
-rw-r--r--3845/CH8/EX8.7/Ex8_7.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/3845/CH8/EX8.7/Ex8_7.sce b/3845/CH8/EX8.7/Ex8_7.sce
new file mode 100644
index 000000000..12d35b0ed
--- /dev/null
+++ b/3845/CH8/EX8.7/Ex8_7.sce
@@ -0,0 +1,16 @@
+//Example 8.7
+m1=0.250;//Mass of object 1 (kg)
+m2=0.400;//Mass of object 2 (kg)
+v1=2.00;//Initial speed of object 1 (m/s)
+v1_final=1.50;//Final speed of object 1 (m/s)
+theta1=45;//Angle of emergence (deg)
+theta2=atand((v1_final*sind(theta1))/(v1_final*cosd(theta1)-v1));//Direction of velocity of object 2 (deg)
+printf('Direction of velocity of object 2 after collision = %0.1f deg\n',theta2)
+if theta2<0
+ printf('\t\t\t\t\t\t or %0.1f deg',360+theta2)
+end
+v2_final=-(m1/m2)*v1_final*(sind(theta1)/sind(theta2));
+printf('\nMagnitude of velocity of object 2 after collision = %0.3f m/s',v2_final)
+//Answer varies due to round off error
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest