blob: dadcd54b7d873cfe6d3eb1a73c6bd07b1f0501fd (
plain)
1
2
3
4
5
6
7
8
9
10
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);
|