summaryrefslogtreecommitdiff
path: root/3869/CH5/EX5.17/Ex5_17.sce
blob: 8b5f29fa031cbcf16710292f5c825ca4ca455bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clear
//
//
//

//Variable declaration
n1=1.53          //Core refractive index
n2=1.42          //Cladding refractive index

//Calculation
thetac=asin(n2/n1)*180/%pi       //critical angle(degrees)

//Result
printf("\n critical angle is %0.2f  degrees",thetac)