blob: c674b18bce88318a5d3bdf85e08e719111e319fa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc;
clear;
lambda=5000*10^-8 //wavelength in cm
N=15000 //lines per inch
k=3
e=1/4000 //in cm
//calculation
sin_theta = (k*lambda)/e //in radian
cos_theta = sqrt(1-sin_theta^2) // in radian
disspersive_power = k/(e*cos_theta)
printf("Dispersive power of the grating in third order spectrum = %d",disspersive_power)
|