summaryrefslogtreecommitdiff
path: root/3875/CH5/EX5.9/Ex5_9.sce
blob: 2617a97ec8434b6c024b98ba213b2238c0ada40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc;
clear;
sin_theta1=0.2 //angle in radian
sin_theta2=0.3 // angle in radian
lambda = 5000*10^-9 //wavelength in cm
d=2.5 //width of the grating surface in cm

//calculations
e=lambda/(sin_theta2-sin_theta1) //in cm
N=d/e //number or rulings
Rp=2*N

printf("Resolving power = %d",ceil(Rp))