summaryrefslogtreecommitdiff
path: root/1379/CH12/EX12.1.5/example12_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '1379/CH12/EX12.1.5/example12_5.sce')
-rwxr-xr-x1379/CH12/EX12.1.5/example12_5.sce29
1 files changed, 14 insertions, 15 deletions
diff --git a/1379/CH12/EX12.1.5/example12_5.sce b/1379/CH12/EX12.1.5/example12_5.sce
index f99f24ae6..0a57d1e5f 100755
--- a/1379/CH12/EX12.1.5/example12_5.sce
+++ b/1379/CH12/EX12.1.5/example12_5.sce
@@ -1,15 +1,14 @@
-
-
-//example 12.5
-clc; funcprot(0);
-// Initialization of Variable
-l=25;
-pi=3.1428;
-rhos=2690;//density of ore
-emin=0.6;
-emax=0.8;
-//calculation
-Pmax=rhos*(1-emin)*g*l;
-disp(Pmax,"The maximum pressure drop in (N/m^2):");
-Pmin=rhos*(1-emax)*g*l;
-disp(Pmin,"The minimum pressure drop in (N/m^2):");
+//example 12.5
+clc; funcprot(0);
+// Initialization of Variables
+l=25;
+ g = 9.81;
+pi=%pi;
+rhos=2690;//density of ore
+emin=0.6;
+emax=0.8;
+//calculation
+Pmax=rhos*(1-emin)*g*l;
+disp(Pmax,"The maximum pressure drop in (N/m^2):");
+Pmin=rhos*(1-emax)*g*l;
+disp(Pmin,"The minimum pressure drop in (N/m^2):"); \ No newline at end of file