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

//Chapter 2 : Diffraction

clear;

//Variable declaration
m=1                      //first minimum
lamda=6000*10**-10       //wavelength
theta=(35*%pi/180)   //angle in radians

//Calculations
a=(m*lamda)/sin(theta)/10**-6

//Result
mprintf("Width of the slit a= %.2f micro-m",a)