From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 24/CH9/EX9.7/Example9_7.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 24/CH9/EX9.7/Example9_7.sce (limited to '24/CH9/EX9.7/Example9_7.sce') 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 -- cgit