diff options
author | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
---|---|---|
committer | prashantsinalkar | 2017-10-10 12:27:19 +0530 |
commit | 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch) | |
tree | dbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /374/CH3/EX3.2 | |
parent | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff) | |
download | Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2 Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip |
initial commit / add all books
Diffstat (limited to '374/CH3/EX3.2')
-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);
|