Mathematics Analysis in Electron Diffraction and Crystallography