summaryrefslogtreecommitdiff
path: root/3740/CH5/EX5.4/Ex5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3740/CH5/EX5.4/Ex5_4.sce')
-rw-r--r--3740/CH5/EX5.4/Ex5_4.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/3740/CH5/EX5.4/Ex5_4.sce b/3740/CH5/EX5.4/Ex5_4.sce
new file mode 100644
index 000000000..b72806df3
--- /dev/null
+++ b/3740/CH5/EX5.4/Ex5_4.sce
@@ -0,0 +1,13 @@
+//Optoelectronics - An Introduction, 2nd Edition by J. Wilson and J.F.B. Hawkes
+//Example 5.4
+//OS=Windows XP sp3
+//Scilab version 5.5.2
+clc;
+clear;
+
+//given
+n1=1;//Refractive index of air medium
+n2=3.6;//Refractive index of GaAs medium
+
+R=((n2-n1)/(n2+n1))^2;//Reflectance at GaAs/air interface by Fresnel equation
+mprintf("\n R = %.2f",R);