diff options
Diffstat (limited to '374/CH3/EX3.2/32.sci')
-rw-r--r-- | 374/CH3/EX3.2/32.sci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/374/CH3/EX3.2/32.sci b/374/CH3/EX3.2/32.sci new file mode 100644 index 000000000..934b38cc8 --- /dev/null +++ b/374/CH3/EX3.2/32.sci @@ -0,0 +1,15 @@ +//chapter 3 example 2//
+//temperature of silica glass=T,isothermal compressebility=Bc,refractive index of silica=n1,photoelastic coeffcient of silica=P,boltzmann constant=Kb,optical wavelength=l,rayleigh scattering coeffcient=Tr,attenuation in km=Akm,attenuation in db=Adb//
+clc
+clear
+n1=1.46;
+P=0.286;
+Bc=7*(10^-11);//in meter sqr per newton//
+l=(10^-6)// in meters//
+T=1400//in kelvin//
+Kb=1.38*(10^-23)//in joules per kelvin//
+Tr=((8*(%pi^3))*(n1^8)*(P^2)*Bc*Kb*T)/(3*(l^4));
+printf("\n rayleigh scattering constant=%f per metre.\n",Tr);
+Akm=exp(-1*Tr*(10^3));
+Adb=10*(log10(1/Akm));
+printf("\n attenuation in db=%f db per Km.\n",Adb);
|