diff options
Diffstat (limited to '2855/CH1/EX1.7/Ex1_7.sce')
-rwxr-xr-x | 2855/CH1/EX1.7/Ex1_7.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/2855/CH1/EX1.7/Ex1_7.sce b/2855/CH1/EX1.7/Ex1_7.sce new file mode 100755 index 000000000..6130a7d1a --- /dev/null +++ b/2855/CH1/EX1.7/Ex1_7.sce @@ -0,0 +1,14 @@ +//Ex1_7
+//given
+//page no 12
+clc;
+clear;
+disp('Solution (i)');
+c=3*10^8; //in m/s speed of light
+l=640; //in nm
+u=2.2*10^8; //in m/s
+lm=u*l/c; //wavelenth in medium
+printf("\n The wavelength is %0.1f nm\n",lm);// The answer in the book is misprinted
+disp('Solution (ii)');
+n=l/lm; //refractive index
+printf("\n Refractive Index is %0.3f \n",n);//The answer in the book is misprinted
|