summaryrefslogtreecommitdiff
path: root/3638/CH2/EX2.5/Ex2_5.sce
diff options
context:
space:
mode:
Diffstat (limited to '3638/CH2/EX2.5/Ex2_5.sce')
-rw-r--r--3638/CH2/EX2.5/Ex2_5.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/3638/CH2/EX2.5/Ex2_5.sce b/3638/CH2/EX2.5/Ex2_5.sce
new file mode 100644
index 000000000..bff5a8dc1
--- /dev/null
+++ b/3638/CH2/EX2.5/Ex2_5.sce
@@ -0,0 +1,12 @@
+//Introduction to Fiber Optics by A. Ghatak and K. Thyagarajan, Cambridge, New Delhi, 1999
+//Example 2.5
+//OS=Windows XP sp3
+//Scilab version 5.5.2
+clc;
+clear;
+//given
+n1=1.45;//refractive index of silica
+n2=1;//refractive index of air
+thetac=asin(n2/n1);//critical angle for the air-silica interface in radians
+mprintf("Critical angle for air-silica interface=%.1f degrees",thetac*180/%pi);//multiplying by 180/pi to convert radians to degrees
+