summaryrefslogtreecommitdiff
path: root/172/CH2/EX2.6/ex6.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /172/CH2/EX2.6/ex6.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 '172/CH2/EX2.6/ex6.sce')
-rwxr-xr-x172/CH2/EX2.6/ex6.sce16
1 files changed, 16 insertions, 0 deletions
diff --git a/172/CH2/EX2.6/ex6.sce b/172/CH2/EX2.6/ex6.sce
new file mode 100755
index 000000000..3d74b243c
--- /dev/null
+++ b/172/CH2/EX2.6/ex6.sce
@@ -0,0 +1,16 @@
+//example 6
+//calculating pressure
+clear
+clc
+dg=750 //density of gaasoline in kg/m^3
+dR=1206 //density of R-134a in kg/m^3
+H=7.5 //height of storage tank in metres
+g=9.807 //acc. due to gravity in m/s^2
+dP1=dg*g*H/1000 //in kPa
+Ptop1=101 //atmospheric pressure in kPa
+P1=dP1+Ptop1
+disp('hence,pressure at the bottom of storage tank if fluid is gasoline is 156.2 kPa')
+dP2=dR*g*H/1000 //in kPa
+Ptop2=1000 //top surface pressure in kPa
+P2=dP2+Ptop2
+printf("\n hence, pressure at the bottom of storage tank if liquid is R-134a is P2 = %.0f kPa. \n",P2) \ No newline at end of file