diff options
Diffstat (limited to '172/CH17/EX17.5/ex5.sce')
-rwxr-xr-x | 172/CH17/EX17.5/ex5.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/172/CH17/EX17.5/ex5.sce b/172/CH17/EX17.5/ex5.sce new file mode 100755 index 000000000..d655a00f7 --- /dev/null +++ b/172/CH17/EX17.5/ex5.sce @@ -0,0 +1,13 @@ +//ques5
+//determining velocity of sound in air
+clear
+clc
+k=1.4;//constant
+R=0.287;//gas constant
+//at 300K
+T1=300;//K
+c1=sqrt(k*R*T1*1000);
+printf('Speed of sound at %.0f K = %.1f m/s \n',T1,c1);
+T2=1000;//K
+c2=sqrt(k*R*T2*1000);
+printf(' Speed of sound at %.0f K = %.1f m/s \n',T2,c2);
\ No newline at end of file |