summaryrefslogtreecommitdiff
path: root/1379/CH12/EX12.1.5
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:38:01 +0530
committerprashantsinalkar2017-10-10 12:38:01 +0530
commitf35ea80659b6a49d1bb2ce1d7d002583f3f40947 (patch)
treeeb72842d800ac1233e9d890e020eac5fd41b0b1b /1379/CH12/EX12.1.5
parent7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (diff)
downloadScilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.gz
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.tar.bz2
Scilab-TBC-Uploads-f35ea80659b6a49d1bb2ce1d7d002583f3f40947.zip
updated the code
Diffstat (limited to '1379/CH12/EX12.1.5')
-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