diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /557/CH20/EX20.3/3.sce | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '557/CH20/EX20.3/3.sce')
-rwxr-xr-x | 557/CH20/EX20.3/3.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/557/CH20/EX20.3/3.sce b/557/CH20/EX20.3/3.sce new file mode 100755 index 000000000..1bfe76dc4 --- /dev/null +++ b/557/CH20/EX20.3/3.sce @@ -0,0 +1,18 @@ +clc; funcprot(0); //Example 20.3
+
+//Initializing the variables
+c = 1250;
+Dt = 0.02;
+Dv = 0.5;
+rho = 1000;
+v =0.5;
+
+//Calculations
+cDt = c*Dt;
+Dp = rho*c*Dv;
+DOv_DOt = Dv/Dt;
+vDOv_DOt = v*Dv/cDt;
+DOp_DOt = Dp/Dt;
+vDOp_DOx = v*Dp/cDt;
+Error = [vDOv_DOt*100/DOv_DOt vDOp_DOx*100/DOp_DOt];
+disp(Error, "The percentage errors are given below are very small hence can be neglected :");
\ No newline at end of file |