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/CH17/EX17.4 | |
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/CH17/EX17.4')
-rwxr-xr-x | 557/CH17/EX17.4/4.sce | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/557/CH17/EX17.4/4.sce b/557/CH17/EX17.4/4.sce new file mode 100755 index 000000000..e63fcdc01 --- /dev/null +++ b/557/CH17/EX17.4/4.sce @@ -0,0 +1,20 @@ +clc; funcprot(0); //Example 17.4
+
+//Initializing the variables
+gma = 1.4;
+f = 0.00375;
+d = 0.05;
+
+//Calculations
+m = d/4;
+function[y] = x(Ma)
+ A =(1 -Ma^2 )/(gma*Ma^2);
+ B = (gma+1)*Ma^2/(2+(gma-1)*Ma^2);
+ y = m/f*(A+ (gma+1)*log(B)/(2*gma));
+endfunction
+
+X1 = x(0.2); // At entrance Ma = 0.2;
+X06_X1 =x(0.6); // Section(b) Ma = 0.6;
+
+X06 = X1-X06_X1;
+disp(X06, "Distance from the entrance (m):",X1,"The Distance X1 at which the Mach number is unity (m) :");
\ No newline at end of file |