summaryrefslogtreecommitdiff
path: root/896/CH8/EX8.2/2.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /896/CH8/EX8.2/2.sce
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 '896/CH8/EX8.2/2.sce')
-rwxr-xr-x896/CH8/EX8.2/2.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/896/CH8/EX8.2/2.sce b/896/CH8/EX8.2/2.sce
new file mode 100755
index 000000000..3eaf9a28e
--- /dev/null
+++ b/896/CH8/EX8.2/2.sce
@@ -0,0 +1,12 @@
+clc
+//Example 8.2
+//Calculate the speed of sound in air at 20 C
+R=10.73//lbf.ft^3/in^2/lbmol/R
+//1 ft = 12 in
+//1 lbf.s^2 = 32.2 lbm.ft
+R1=(R*144*32.2)^0.5//ft/s*(lbm/lbmol/R)^0.5
+k=1.4//dimentionless
+T=528//R (Rankine temperature scale)
+M=29//lbm/lbmol
+c=R1*(k*T/M)^0.5//ft/s
+printf("the speed of sound in air at 20 C is %f ft/s",c); \ No newline at end of file