diff options
Diffstat (limited to '3785/CH12/EX12.8/Ex12_8.sce')
-rw-r--r-- | 3785/CH12/EX12.8/Ex12_8.sce | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/3785/CH12/EX12.8/Ex12_8.sce b/3785/CH12/EX12.8/Ex12_8.sce new file mode 100644 index 000000000..c2fae6951 --- /dev/null +++ b/3785/CH12/EX12.8/Ex12_8.sce @@ -0,0 +1,10 @@ +// Example 12_8
+clc;funcprot(0);
+// Given data
+theta=10;// The half angle of two dimensional wedge in degree
+beta=20;// The attached shock wave angle in degree
+r=1.4;// The specific heat ratio
+
+// Calculation
+M=sqrt(((2*tand(theta))+(2*cotd(beta)))/((2*cosd(beta)*sind(beta))-((r+(cosd(beta)*cosd(beta)))*tand(theta))));// The Mach number M of the flow in the wind tunnel
+printf("The Mach number M of the flow in the wind tunnel,M=%1.3f",M);
|