diff options
Diffstat (limited to '3822/CH7/EX7.1/Ex7_1.sce')
-rw-r--r-- | 3822/CH7/EX7.1/Ex7_1.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3822/CH7/EX7.1/Ex7_1.sce b/3822/CH7/EX7.1/Ex7_1.sce new file mode 100644 index 000000000..2e2552ac5 --- /dev/null +++ b/3822/CH7/EX7.1/Ex7_1.sce @@ -0,0 +1,16 @@ + +//Optoelectronics and Fiber Optics Communication by C.R. Sarkar and D.C. Sarkar
+//Example 7.1
+//OS = Windows 7
+//Scilab version 5.5.2
+
+clc;
+clear;
+
+//given
+theta=30;//value of angle of deliverence in degrees
+b=cosd(theta);// cosine value of the theta
+a=log10(b);//constant
+c=log10(1/2);//constant
+n=c/a;// refractive index
+mprintf("The value of refractive index is= %.2f",n);//the answer vary due to rounding
|