blob: 53d30672f1ce5f3b5ae16130675ae8e009be8963 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Exa5
clc;
clear;
close;
//given data :
n=2;
d=0.4;// in nenometer
d=d*10^-9;// in meter
theta=16.8/2;// in degree
//using Bragg's equation we have n*lamda=2*d*sin(theta), so
lamda=(2*d*sin(8.4*%pi/180))/n;
disp("Wavelength of X-rays used is : "+string(lamda*10^10)+" Angstrum");
|