blob: e40e8b6cf2a89d355284fc0336b31e820fc9fc36 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// Exa 1.21.1
clc;
clear;
close;
// Given data
d = 2.82;// in Å
d = d * 10^-10;// in m
n = 1;
theta = 10;// in degree
//Formula 2*d*sin(theta) = n*lembda;
lembda = 2*d*sind(theta);// in m
lembda = lembda * 10^10;// in Å
disp(lembda,"The wavelength of X-ray in Å is ");
|