summaryrefslogtreecommitdiff
path: root/3869/CH2/EX2.2/Ex2_2.sce
blob: b48ef4a82fe93a646c90c0ee97addfbc69c2007a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clear
//
//
//

//Variable declaration
lamda=5000*10**-8      //wavelength(cm)
e=1/6000               //number of lines(cm)

//Calculation
theta1=asin(lamda/e)*180/%pi       //angle for 1st order(degrees)            
theta2=asin(3*lamda/e)*180/%pi     //angle for 3rd order(degrees)            
theta=(theta2)-(theta1)      //difference in angles of deviation(degrees)


//Result
printf("\n difference in angles of deviation is %0.3f  degrees",theta)