blob: b2d74426f28a5af7ad0f0fd9f59c255b0e65f709 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
//Problem 8
//calculate the wavelength of X-rays used
clear
clc
d=2.81//interplanar spacing in A
n=1//order of beam
x=10//angle of first order beam with the incident beam
y=x/2//angle of incident
w=2*d*sind(y)// wavelength of X-rays used in A
printf('wavelength of X-rays used = %.2f A',w)
|