summaryrefslogtreecommitdiff
path: root/3411/CH2/EX2.9/Ex2_9.sce
blob: 8f6449a634b7201fc0b08fbe236159c3a67514c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 2_9
clc();
clear;
//To calculate resolving power in second order
//We have e*sin(theta)=k*lamda
//We have e*0.2=k*lamda       ->1
//And e*0.3=(k+1)*lamda        ->2
//Subtracting one and two 3*0.1=lamda
lamda=5000         //units in armstrongs
lamda=lamda*10^-8   //units in cm
e=lamda/0.1     //units in cm
width=2.5       //units in cm
N=width/e
respower=2*N
printf("Resolving power is %.f",respower)