summaryrefslogtreecommitdiff
path: root/1268/CH11/EX11.1/a_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '1268/CH11/EX11.1/a_1.sce')
-rw-r--r--1268/CH11/EX11.1/a_1.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/1268/CH11/EX11.1/a_1.sce b/1268/CH11/EX11.1/a_1.sce
new file mode 100644
index 000000000..b13af849d
--- /dev/null
+++ b/1268/CH11/EX11.1/a_1.sce
@@ -0,0 +1,13 @@
+clc;
+disp("Example A.1")
+g=9.81
+density=1000 // of water in kg/m^3
+densitym=13600 // of mercury in kg/m^3
+h=0.1 // in m
+p1=density*g*h
+p2=p1+(densitym*g*h)
+waterhead=p2/(density*g)
+hghead=p2/(g*densitym)
+
+disp(waterhead,"Head of water is ")
+disp(hghead,"Head of mercury is ")