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

//Variable declaration
theta=15*%pi/180            //angle(radian)
lamda=6500*10**-8               //wavelength(cm) 
n=1                             //order

//Calculation
a=n*lamda/sin(theta)       //slit width(cm)

//Result
printf("\n slit width is %0.2f  *10**-4 cm",a*10**4)