blob: c288d0014a9d0fc8db4feff16d8364a51fcdee21 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
//Chapter 1 : Wave Optics
clear;
//Variable declaration
lamda=5640*10**-8 //wavelength
d=0.01 //distance between slits
n=0 //first minimum
//Calculations
theta=(n+(1/2))*(lamda/d)
theta=theta*180/%pi
//Result
mprintf("Angular position of first minima is= %0.2f",theta)
|