diff options
author | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
---|---|---|
committer | prashantsinalkar | 2018-02-03 11:01:52 +0530 |
commit | 7bc77cb1ed33745c720952c92b3b2747c5cbf2df (patch) | |
tree | 449d555969bfd7befe906877abab098c6e63a0e8 /3869/CH1/EX1.12/Ex1_12.sce | |
parent | d1e070fe2d77c8e7f6ba4b0c57b1b42e26349059 (diff) | |
download | Scilab-TBC-Uploads-master.tar.gz Scilab-TBC-Uploads-master.tar.bz2 Scilab-TBC-Uploads-master.zip |
Diffstat (limited to '3869/CH1/EX1.12/Ex1_12.sce')
-rw-r--r-- | 3869/CH1/EX1.12/Ex1_12.sce | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/3869/CH1/EX1.12/Ex1_12.sce b/3869/CH1/EX1.12/Ex1_12.sce new file mode 100644 index 000000000..f44d0c1c7 --- /dev/null +++ b/3869/CH1/EX1.12/Ex1_12.sce @@ -0,0 +1,27 @@ +clear +// +// +// + +//Variable declaration +mew=1.33 //refractive index +i=35*%pi/180 //angle of incidence(radian) +d=5*10**-5 //thickness(cm) +n1=1 //order +n2=2 //order +n3=3 //order +n4=4 //order + +//Calculation +r=180/%pi*asin(sin(i)/mew) //angle of reflection(degrees) +lamda1=2*mew*d*cos(r)/n1 //wavelength of light for 1st order(cm) +lamda2=2*mew*d*cos(r)/n2 //wavelength of light for 2nd order(cm) +lamda3=2*mew*d*cos(r)/n3 //wavelength of light for 3rd order(cm) +lamda4=2*mew*d*cos(r)/n4 //wavelength of light for 4th order(cm) + +//Result +printf("\n wavelength of light for 1st order is %0.1f *10**-5 cm",lamda1*10**5) +printf("\n answer in the book varies due to rounding off errors") +printf("\n wavelength of light for 2nd order is %0.2f *10**-5 cm",lamda2*10**5) +printf("\n wavelength of light for 3rd order is %0.2f *10**-5 cm",lamda3*10**5) +printf("\n wavelength of light for 4th order is %0.1f *10**-5 cm",lamda4*10**5) |