From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 494/CH8/EX8.1/8_1.sce | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100755 494/CH8/EX8.1/8_1.sce (limited to '494/CH8/EX8.1') diff --git a/494/CH8/EX8.1/8_1.sce b/494/CH8/EX8.1/8_1.sce new file mode 100755 index 000000000..b29ab05eb --- /dev/null +++ b/494/CH8/EX8.1/8_1.sce @@ -0,0 +1,38 @@ +//All the quantities are expressed in SI units + +R = 287; +gam = 1.4; +V_inf = 250; + +//(a) +//At sea level +T_inf = 288; + +//the velocity of sound is given by +a_inf = sqrt(gam*R*T_inf); + +//thus the mach number can be calculated as +M_inf = V_inf/a_inf; + +printf("\n(a)\nThe Mach number at sea level is:\n M_inf = %1.3f\n",M_inf) + +//similarly for (b) and (c) +//(b) +//at 5km +T_inf = 255.7; + +a_inf = sqrt(gam*R*T_inf); + +M_inf = V_inf/a_inf; + +printf("\n(b)\nThe Mach number at 5 km is:\n M_inf = %1.2f\n",M_inf) + +//(c) +//at 10km +T_inf = 223.3; + +a_inf = sqrt(gam*R*T_inf); + +M_inf = V_inf/a_inf; + +printf("\n(c)\nThe Mach number at 10 km is:\n M_inf = %1.3f\n",M_inf) \ No newline at end of file -- cgit