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 /1271/CH8/EX8.3/example8_3.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 '1271/CH8/EX8.3/example8_3.sce')
-rwxr-xr-x | 1271/CH8/EX8.3/example8_3.sce | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/1271/CH8/EX8.3/example8_3.sce b/1271/CH8/EX8.3/example8_3.sce new file mode 100755 index 000000000..8c4c5da02 --- /dev/null +++ b/1271/CH8/EX8.3/example8_3.sce @@ -0,0 +1,18 @@ +clc +// Given that +n = 512 // frequency of tuning fork in Hz +T = 290 // temperature in kelvin +lambda = 66.5 // wavelength of the gas emitted by tuning fork in cm +d = 1.293e-3 // density of air at S.T.P. in gm/cm^3 +d_ = 13.6 // density of mercury in gm/cm^3 +g = 980 // gravitational constant i dynes/cm^3 +// Sample Problem 3 on page no. 8.18 +printf("\n # PROBLEM 3 # \n") +printf(" Standard formula used \n") +printf(" nu = (gamma*p/rho)^1/2 \n p =rho*g*h \n\n" ) +p = 76 * d_ * g// calculation for pressure +v_ = n * lambda// calculation for velocity of sound in air at temperature 17 c +v = v_ * sqrt(273 / T)// calculation for velocity of sound in air at temp 0 c +gama = v^2 * (d / p)// calculation for ratio of two specific heat + +printf("\n Ratio of two principal specific heats of air is %f",gama) |