blob: 8323e65b9716c8d0bc6bc57708eef79ea4d5f487 (
plain)
1
2
3
4
5
6
7
|
//clc();
clear;
//To calculate critical angle
n1=1.53; //refractive index of core
n2=1.42; //refractive index of cladding
thetac=asind(n2/n1);
printf("critical angle is %f degrees",thetac);
|