blob: 06aadd71d666f89ed24a8ab040e73adaf23afaf5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clc//
//
//
//Variable declaration
NA=0.39; //numerical aperture
delta=0.05; //difference of indices
//Calculation
n1=NA/sqrt(2*delta); //refractive index of core
//Result
printf("\n refractive index of core is %0.4f ",n1)
printf("\n answer varies due to rounding off errors")
|