summaryrefslogtreecommitdiff
path: root/2921/CH2/EX2.3
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2921/CH2/EX2.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 '2921/CH2/EX2.3')
-rwxr-xr-x2921/CH2/EX2.3/Ex2_3.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2921/CH2/EX2.3/Ex2_3.sce b/2921/CH2/EX2.3/Ex2_3.sce
new file mode 100755
index 000000000..9fd946f0a
--- /dev/null
+++ b/2921/CH2/EX2.3/Ex2_3.sce
@@ -0,0 +1,13 @@
+clc;
+clear;
+mprintf('MACHINE DESIGN \n Timothy H. Wentzell, P.E. \n EXAMPLE-2.3 Page 29 ') //Example 2.3
+
+T=300*12; //[in*lb] Engine torque
+d=8; //[in] Crankshaft effective diameter
+
+F=T/(d/2); //[lb] Force exerted by piston
+
+A=%pi*(2^2)/4; //[in^2] Area of cross section of piston
+P=F/A; //[lb/in^2] Pressure in cylinder
+
+mprintf('\n\n Pressure inside cylinder %f lb/in^2',P);