summaryrefslogtreecommitdiff
path: root/32/CH1/EX1.05/1_05.sce
diff options
context:
space:
mode:
Diffstat (limited to '32/CH1/EX1.05/1_05.sce')
-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)