summaryrefslogtreecommitdiff
path: root/3828/CH2/EX2.2/Ex2_2.sce
blob: 32b381a9f35e33eb8fcdab0d75d67e3dfdb8ecec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

//Chapter 2 : Diffraction

clear;

//Variable declaration
m=1                      //first minimum
lamda=6500*10**-10       //wavelength
a=2*10**-6               //slit width

//Calculations
theta=((asin((m*lamda)/a))*180/%pi)

//Result
mprintf("Angle of first minimum theta= %.2f degrees",theta)