summaryrefslogtreecommitdiff
path: root/3843/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3843/CH2/EX2.5/Ex2_5.sce')
-rw-r--r--3843/CH2/EX2.5/Ex2_5.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3843/CH2/EX2.5/Ex2_5.sce b/3843/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..a0924cd1a
--- /dev/null
+++ b/3843/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,13 @@
+// Example 2_5
+clc;funcprot(0);
+// Given data
+V=0.6;// m^3
+P_gage=200;// The gage pressure in kPa
+T=20+273;// K
+P_atm=100;// kPa
+R=287;// N.m/kg.K
+
+// Calculation
+P=P_gage+P_atm;// The absolute pressure in kPa
+m=(P*10^3*V)/(R*T);// The mass of air in kg
+printf("\nThe mass of air,m=%1.2f kg",m);