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.3/8_3.sce | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 494/CH8/EX8.3/8_3.sce (limited to '494/CH8/EX8.3') diff --git a/494/CH8/EX8.3/8_3.sce b/494/CH8/EX8.3/8_3.sce new file mode 100755 index 000000000..e914df910 --- /dev/null +++ b/494/CH8/EX8.3/8_3.sce @@ -0,0 +1,19 @@ +//All the quantities are expressed in SI units + +gam = 1.4; //ratio of specific heats + +//(a) +M = 2; //Mach number + +//the ratio of kinetic energy to internal energy is given by +ratio = gam*(gam-1)*M*M/2; + +printf("\n(a)\nThe ratio of kinetic energy to internal energy is:\n\n %1.2f\n",ratio) + +//similarly for (b) +//(b) +M = 20; + +ratio = gam*(gam-1)*M*M/2; + +printf("\n(b)\nThe ratio of kinetic energy to internal energy is:\n\n %3.0f\n",ratio) \ No newline at end of file -- cgit