blob: b56457cf5bf7d7ddf279232f49e9c29534c87110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//Chapter 2 : Diffraction
clear;
//Variable declaration
lamda=5893*10**-8 //wavelength
dlamda=6*10**-8
n=3 //third order
//Calculations
N=lamda/(n*dlamda)
//Result
mprintf("Number of grating lines= %.1f",N)
|