How I can calculate strain? I know that strain =delta d/ d, d= a/ sqrt(h^2+k^2+l^2) and d= lambda /(2*sin theta), but I don't get a true answer if I use this equation.
You want to measure microscopic lengths using XRD. In order to verify your results, you must measure the d without strain and with strain. If there is any resolvable difference, then you can use this method for such measurement and vice verse.
As the strain delta d is much smaller than d, it may not be resolvable.
An alternative way. normally we measure the macroscopic strain delta l by observing the strain of relatively long piece of material whose length is l. Then you can scale delta l to get delta d.
A measuring concept is never measure a small difference between two relatively large quantities. As the error in the measurement will be square root of the sum the square error in the the two quantities and you may not capable to resolve the difference.
If I understood you correctly, in order to calculate d from XRD you have to know lambda of the Xray wave and you must measure 2 theta for certain crystallographic orientation. If you have 100 oriented crystal you can get the lattice constant ,a,. Then you can calculate d and verify it also as given in the table provided that your crystal is cubic.
If you calculate the error between the two answers E,you find it 0.0001 which makes a relative error Er=0.0001/2.7089=3.6916 x 10^ mince 5 which is a very very small error.
However, it may be caused by the error in calculating the sinusoidal function. To calculate the sinusoidal function by a calculator, one must calculate an infinite series.
Practically one can not calculate the infinite number of terms, rather the calculations are stopped when the terms are smaller than certain error determined by the precision of the computer. Here i assumed that lambda and are the same. Then the error comes from the approximation in the calculations and the error due to finite length representations in the computer.
I raised the error in the numbers in my first comment and it is still valid. Even, this example supports my previous conclusions.
The value of η is the strain in the crystallites, the value of D represents the size of the crystallites. The constant k is typically close to unity and ranges from 0.8 to 1.39. B width of a diffraction peak
I can recomment to check and perform the X-ray course which is available under the link provided by Amir Zelati (http://pd.chem.ucl.ac.uk/pdnn/pdindex.htm#pubs)
Very useful material to get a good overview and the "how to do"s! Good success, Dirk