summaryrefslogtreecommitdiff
path: root/3785/CH4/EX4.8/Ex4_8.sce
diff options
context:
space:
mode:
Diffstat (limited to '3785/CH4/EX4.8/Ex4_8.sce')
-rw-r--r--3785/CH4/EX4.8/Ex4_8.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3785/CH4/EX4.8/Ex4_8.sce b/3785/CH4/EX4.8/Ex4_8.sce
new file mode 100644
index 000000000..d9b7d7120
--- /dev/null
+++ b/3785/CH4/EX4.8/Ex4_8.sce
@@ -0,0 +1,11 @@
+// Example 4_8
+clc;funcprot(0);
+// Given data
+rho=8.6*10^2;// The density of gasoline in kg/m^3
+L=1.0;// The tank length in m
+H=0.6;// The tank height in m
+g=9.807;// The acceleration due to gravity in m/s^2
+
+// Calculation
+p=rho*g*(H+(2*L));// Pa
+printf("\nThe maximum pressure in the tank,p=p_a+%1.3e Pa",p)