summaryrefslogtreecommitdiff
path: root/3638/CH2/EX2.5/Ex2_5.sce
blob: bff5a8dc18ddbfdbd2c7a0da8b5be645651645c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
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