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 /2420/CH10/EX10.1 | |
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 '2420/CH10/EX10.1')
-rwxr-xr-x | 2420/CH10/EX10.1/10_1.sce | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/2420/CH10/EX10.1/10_1.sce b/2420/CH10/EX10.1/10_1.sce new file mode 100755 index 000000000..bdcc40cf7 --- /dev/null +++ b/2420/CH10/EX10.1/10_1.sce @@ -0,0 +1,19 @@ +clc
+clear
+//Initialization of variables
+hb=29 //in of Hg
+sg=0.491
+Ra=53.3
+Ta=460+40 //R
+Tg=540+460 //R
+H=300 //ft
+gam=62.4 //lb/cu ft
+//calculations
+pb=hb*sg*144
+rhoa=pb/(Ra*Ta)
+rhog=pb/(Ra*Tg)
+dp=H*(rhoa-rhog)
+D=dp/(gam)
+//results
+printf("Theoretical draft = %.1f psf",dp)
+printf("\n Draft = %.2f ft H2O",D)
|