summaryrefslogtreecommitdiff
path: root/3710/CH5/EX5.4/Ex5_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3710/CH5/EX5.4/Ex5_4.sce')
-rw-r--r--3710/CH5/EX5.4/Ex5_4.sce11
1 files changed, 11 insertions, 0 deletions
diff --git a/3710/CH5/EX5.4/Ex5_4.sce b/3710/CH5/EX5.4/Ex5_4.sce
new file mode 100644
index 000000000..dadcd54b7
--- /dev/null
+++ b/3710/CH5/EX5.4/Ex5_4.sce
@@ -0,0 +1,11 @@
+//Example 5.4, Page Number 205
+//The Function fpround(dependency) is used to round a floating point number x to n decimal places
+clc;
+n2=3.6 //Refractive Index for GaAs
+n1=1 //Refractive Index for Air
+//From Fresnels Equation
+
+R=((n2-n1)/(n2+n1))**2
+R=fpround(R,2)
+
+mprintf("The Reflectance at a GaAs/Air Interface is %0.2f",R);