summaryrefslogtreecommitdiff
path: root/3875/CH5/EX5.7/Ex5_7.sce
blob: bd2ab706f596519c786b2414c667a916310bec20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc;
clear;
lambda=6000*10^-8 //wavelength in cm
N=5000 //lines per cm
k=3
e=1/5000 //in cm
sin_theta=1 //angle in radian

//calculation 
k=(e*sin_theta)/lambda

printf("The highest order of spectrum that can be seen is %d",k)