blob: 39f3a49c85d282fdd50bdcc36ff324a3a7265f0e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
//Example 2_9
clc();
clear;
//To calculate the resolving power and grating element
sintheta1=0.3
sintheta2=0.2
lamda=5000 //units in A
e=(lamda/(sintheta1-sintheta2))*10^-8 //units in cm
width=2.5 //units in cm
n=width/e //units in cm
resolvingpower=2*n
printf("Grating element is e=%.5f cm\n",e)
printf("Resolving power=%d",resolvingpower)
|