summaryrefslogtreecommitdiff
path: root/3785/CH4/EX4.5/Ex4_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3785/CH4/EX4.5/Ex4_5.sce')
-rw-r--r--3785/CH4/EX4.5/Ex4_5.sce10
1 files changed, 10 insertions, 0 deletions
diff --git a/3785/CH4/EX4.5/Ex4_5.sce b/3785/CH4/EX4.5/Ex4_5.sce
new file mode 100644
index 000000000..4d1a14b44
--- /dev/null
+++ b/3785/CH4/EX4.5/Ex4_5.sce
@@ -0,0 +1,10 @@
+// Example 4_5
+clc;funcprot(0);
+// Given data
+rho=1.225;// The density of air in kg/m^3
+A_0=1.0;// Area of orifice in cm^2
+A_pV=2.5*10^-4;// The volumetric flow rate in m^3/s
+
+// Calculation
+P=(rho*(A_pV)^3)/(2*(A_0*10^-4)^2);// The power expended in inhaling in W
+printf("\nThe power P expended in inhaling (or exhaling) is %1.2e W",P)