summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.05
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /32/CH1/EX1.05
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 '32/CH1/EX1.05')
-rwxr-xr-x32/CH1/EX1.05/1_05.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/32/CH1/EX1.05/1_05.sce b/32/CH1/EX1.05/1_05.sce
new file mode 100755
index 000000000..a954205a3
--- /dev/null
+++ b/32/CH1/EX1.05/1_05.sce
@@ -0,0 +1,15 @@
+//pathname=get_absolute_file_path('1.05.sce')
+//filename=pathname+filesep()+'1.05-data.sci'
+//exec(filename)
+//Barometer Reading(in m):
+h=76*10^-2
+//Density of mercury(in kg/m^3):
+d=13.6*10^3
+//Acceleration due to gravity(in m/s^2):
+g=9.8
+//Difference of heights in gas barometer(in m):
+h1=40*10^-2
+//Pressure of gas(in kPa):
+pg=(d*g*h1+d*g*h)*10^-3
+printf("\n\n RESULT \n\n")
+printf("\n\n Pressure of gas=%f kPa\n\n",pg)