summaryrefslogtreecommitdiff
path: root/3871/CH3/EX3.18
diff options
context:
space:
mode:
authorprashantsinalkar2018-02-03 11:01:52 +0530
committerprashantsinalkar2018-02-03 11:01:52 +0530
commit7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch)
tree449d555969bfd7befe906877abab098c6e63a0e8 /3871/CH3/EX3.18
parentd1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff)
downloadScilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.gz
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.tar.bz2
Scilab-TBC-Uploads-7bc77cb1ed33745c720952c92b3b2747c5cbf2df.zip
Added new codeHEADmaster
Diffstat (limited to '3871/CH3/EX3.18')
-rw-r--r--3871/CH3/EX3.18/Ex3_18.sce34
1 files changed, 34 insertions, 0 deletions
diff --git a/3871/CH3/EX3.18/Ex3_18.sce b/3871/CH3/EX3.18/Ex3_18.sce
new file mode 100644
index 000000000..251db7ea3
--- /dev/null
+++ b/3871/CH3/EX3.18/Ex3_18.sce
@@ -0,0 +1,34 @@
+//===========================================================================
+//chapter 3 example 18
+
+clc;clear all;
+
+//variable declartaion
+r = 0.5*10^-3; //in mm
+p1 = 200; //in Pa
+p2 = 150; //in Pa
+Q = 4*10^-7; //in m**3/s
+l = 1; //length in m
+dr = 0.01;
+dp1 = 3;
+dp2 = 2
+dQ =0
+dl =0;
+
+//calculations
+u = ((%pi)*((r^4)*((p1*10^3)-(p2*10^3)))/((8*Q*l))); //absolute error inkr/m-s
+er = (dr/((r/(10^-3))))*100; //dr/r in %
+ep1 = (dp1/(p1))*100; //dp1/p1 in %
+ep2 = (dp2/(p2))*100; //dp2/p2 in %
+eQ = (dQ/(Q))*100; //dQ/Q in %
+el = (dl/(l))*100; //dl/l in %
+p = p1-p2; //dp/p in Pa
+ep = (((p1/(p))*(ep1))+(p2/(p))*(ep2)); //percentage error in % anging - to +
+eu = (4*er)+(ep+eQ+el); //percentage error in % ranging - to +
+ua = u*(eu/100); //absolute error in kg/m-s
+
+//result
+
+mprintf("absolute error = %3.3e kg/m-s",u);
+mprintf("\nxabsolute error = %3.2e kg/m-s",ua);
+