diff options
Diffstat (limited to '24/CH9/EX9.7/Example9_7.sce')
-rwxr-xr-x | 24/CH9/EX9.7/Example9_7.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/24/CH9/EX9.7/Example9_7.sce b/24/CH9/EX9.7/Example9_7.sce new file mode 100755 index 000000000..6b0170ab7 --- /dev/null +++ b/24/CH9/EX9.7/Example9_7.sce @@ -0,0 +1,14 @@ +exec("degree_rad.sci",-1)
+
+//Given that
+M = 1 //(say) to directly get the answer
+Mc = 0.30*M
+Vc = [5*cos(dtor(40)), 5*sin(dtor(40))]
+Mb = 0.20*M
+Ma = 0.50*M
+
+//Sample Problem 9-7
+printf("**Sample Problem 9-7**\n")
+deff('[f] = eq_maker(V)', 'f = Ma*V(1)*[cos(dtor(140)),sin(dtor(140))] + Mb*V(2)*[0,-1] + Mc*Vc')
+V= fsolve([0,0], eq_maker)
+printf("The velocity of A is %dm/s & velocity of B is %fm/s after the collision in the given directions", V(1), V(2))
\ No newline at end of file |