diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /24/CH9/EX9.7/Example9_7.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
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 |