summaryrefslogtreecommitdiff
path: root/24/CH9/EX9.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /24/CH9/EX9.7
downloadScilab-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')
-rwxr-xr-x24/CH9/EX9.7/Example9_7.sce14
-rwxr-xr-x24/CH9/EX9.7/Example9_7_result.txt2
2 files changed, 16 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
diff --git a/24/CH9/EX9.7/Example9_7_result.txt b/24/CH9/EX9.7/Example9_7_result.txt
new file mode 100755
index 000000000..f3b7da574
--- /dev/null
+++ b/24/CH9/EX9.7/Example9_7_result.txt
@@ -0,0 +1,2 @@
+**Sample Problem 9-7**
+The velocity of A is 3m/s & velocity of B is 9.641814m/s after the collision in the given directions \ No newline at end of file