blob: d098e474b11b30b9490f58dafa8e977a898fe118 (
plain)
1
2
3
4
5
6
7
8
9
10
|
//Example 7_4
clc();
clear;
//To calculate the numerical apperture and angle of acceptance
n1=1.45
n2=1.40
NA=sqrt(n1^2-n2^2)
printf("Numerical apperture is NA=%.3f\n",NA)
ia=asin(NA)*180/%pi //units in degrees
printf("Angle of acceptance is ia=%.2f Degrees",ia)
|