summaryrefslogtreecommitdiff
path: root/24/CH9/EX9.3
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.3
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.3')
-rwxr-xr-x24/CH9/EX9.3/Example9_3.sce14
-rwxr-xr-x24/CH9/EX9.3/Example9_3_result.txt3
2 files changed, 17 insertions, 0 deletions
diff --git a/24/CH9/EX9.3/Example9_3.sce b/24/CH9/EX9.3/Example9_3.sce
new file mode 100755
index 000000000..752928ae9
--- /dev/null
+++ b/24/CH9/EX9.3/Example9_3.sce
@@ -0,0 +1,14 @@
+exec("degree_rad.sci",-1)
+
+//Given that
+m1 = 4 //in kg
+m2 = 8 //in kg
+m3 = 4 //in kg
+F1 = [-6, 0]
+F2 = [12*cos(dtor(45)), 12*sin(dtor(45))]
+F3 = [14, 0]
+
+//Sample Problem 9-3
+printf("**Sample Problem 9-3**\n")
+aC = (F1 + F2 + F3)/(m1 + m2+ m3)
+printf("The acceleration of center of mass is %fm/s^2 at \nan angle of %f degrees to the positive x-axis", norm(aC), rtod(atan(aC(2)/aC(1)))) \ No newline at end of file
diff --git a/24/CH9/EX9.3/Example9_3_result.txt b/24/CH9/EX9.3/Example9_3_result.txt
new file mode 100755
index 000000000..573ff789b
--- /dev/null
+++ b/24/CH9/EX9.3/Example9_3_result.txt
@@ -0,0 +1,3 @@
+**Sample Problem 9-3**
+The acceleration of center of mass is 1.158805m/s^2 at
+an angle of 27.235724 degrees to the positive x-axis \ No newline at end of file