blob: 6a71b78e621b4d049071ace860fb4cd3aa46c68b (
plain)
1
2
3
4
5
6
7
|
clc
//to calculate wavelength
n=2 //second order for longest wavelength
d=2.82*10^-10 // spacing in angstrom
sintheta=1
lambdamax=2*d*sintheta/n
disp("the longest wavelength that can be analysed by a rock salt crystal is lambdamax="+string(lambdamax)+"m")
|