summaryrefslogtreecommitdiff
path: root/1436/CH2/EX2.4/ex2_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '1436/CH2/EX2.4/ex2_4.sce')
-rwxr-xr-x1436/CH2/EX2.4/ex2_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/1436/CH2/EX2.4/ex2_4.sce b/1436/CH2/EX2.4/ex2_4.sce
new file mode 100755
index 000000000..c95a19a00
--- /dev/null
+++ b/1436/CH2/EX2.4/ex2_4.sce
@@ -0,0 +1,19 @@
+// Example 2.4, page no-117
+clear
+clc
+
+//(a)
+p_diff=500
+pdiff=p_diff*13.546/10000
+printf("(a)\np1-p2 = %.3f kg/cm^2",pdiff)
+
+//(b)
+p1=6770
+p_atm=10300
+abs_p1=p1+p_atm
+printf("\n(b)If p2 is open to atmosphere:\nAbsolute Pressure P1 = %d mmWG abs.",abs_p1)
+
+//(c)
+P1=500
+P1_gauge=P1-760
+printf("\n(c)If p2 is evacuated and sealed:\np1= %d mmHg gauge Pressure",P1_gauge)