summaryrefslogtreecommitdiff
path: root/2708/CH2/EX2.12/ex_2_12.sce
blob: 3f41a9c26a810028aa822984ec35c3dc5ce8bf9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Example 2.12 //Difference of wavelengths
clc;
clear;
//part a
l=5;// length of grating
N=16000;// no. of lines per inch on the grating
w=6000;// wavelength used in A
n=2;// order of specrum
T=N*l;//total no. of lines on grating
R=T*n;// resolving power
disp(R,"resolving power..")
//part b
dw=w/(T*n);// wavelength can be resolved in A
disp(dw,"wavelength can be resolved in A")