diff options
Diffstat (limited to '3710/CH1/EX1.1/Ex1_1.sce')
-rw-r--r-- | 3710/CH1/EX1.1/Ex1_1.sce | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/3710/CH1/EX1.1/Ex1_1.sce b/3710/CH1/EX1.1/Ex1_1.sce new file mode 100644 index 000000000..f01c0c8ad --- /dev/null +++ b/3710/CH1/EX1.1/Ex1_1.sce @@ -0,0 +1,13 @@ +//Example 1.1, Page Number 10
+//The Function fpround(dependency) is used to round a floating point number x to n decimal places
+//Brewster Angle Calculation
+clc;
+
+n2=1.5 //Refractive Index of Glass in Air
+n1=1 //Refractive Index of Air
+
+theta=0 //Brewster's Angle in Degrees
+
+theta=(atand(1.5))//(Brewster's angle= Tan Inverse (n2/n1))
+theta=fpround(theta,2)
+disp(theta,"The Brewsters Angle for the Material in Degrees:");
|