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 /548/CH4/EX4.19/4_19.sce | |
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 '548/CH4/EX4.19/4_19.sce')
-rwxr-xr-x | 548/CH4/EX4.19/4_19.sce | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/548/CH4/EX4.19/4_19.sce b/548/CH4/EX4.19/4_19.sce new file mode 100755 index 000000000..10721596c --- /dev/null +++ b/548/CH4/EX4.19/4_19.sce @@ -0,0 +1,11 @@ +pathname=get_absolute_file_path('4_19.sce')
+filename=pathname+filesep()+'4_19data.sci'
+exec(filename)
+Ma=[[(Po/Pa)^((y-1)/y)-1]*2/(y-1)]^0.5;disp(Ma,"Ma=","Ma=[(Po/Pa)^((y-1)/y)-1]*2/(y-1)","Mach no at point A")
+Ta=Toa/[1+(y-1)*Ma^2/2];
+disp(Ta,"Ta=","Ta=Toa/[1+(y-1)*Ma^2/2]","static temperature at A")
+Va=sqrt(y*R*Ta)*Ma;
+disp(Va,"Va=","velocity at A =a*Ma,where a(sqrt(y*R*Ta)) is apeed of sound at A")
+printf("\Answer:\n")
+printf("\n\Mach No at A: %f \n\n",Ma)
+printf("\n\velocity at A: %f m/s\n\n",Va)
|