summaryrefslogtreecommitdiff
path: root/494/CH9/EX9.5
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /494/CH9/EX9.5
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '494/CH9/EX9.5')
-rwxr-xr-x494/CH9/EX9.5/9_5.sce26
1 files changed, 26 insertions, 0 deletions
diff --git a/494/CH9/EX9.5/9_5.sce b/494/CH9/EX9.5/9_5.sce
new file mode 100755
index 000000000..7f30745de
--- /dev/null
+++ b/494/CH9/EX9.5/9_5.sce
@@ -0,0 +1,26 @@
+//All the quantities are expressed in SI units
+
+M1 = 3;
+b = 40*%pi/180;
+
+//for case 1, for M = 3, from Appendix B, we have
+p0_ratio_case1 = 0.3283;
+
+//for case 2
+Mn_1 = M1*sin(b);
+
+//from Appendix B
+p0_ratio1 = 0.7535;
+Mn_2 = 0.588;
+
+//from fig. 9.9, for M1 = 3 and beta = 40, we have
+theta = 22*%pi/180;
+M2 = Mn_2/sin(b-theta);
+
+//from appendix B for M = 1.9; we have
+p0_ratio2 = 0.7674;
+p0_ratio_case2 = p0_ratio1*p0_ratio2;
+
+ratio = p0_ratio_case2/p0_ratio_case1;
+
+printf("\nRESULTS\n---------\n Ans = %1.2f\n",ratio) \ No newline at end of file