X-ray diffraction from 1d disordered atomic structure by means of analytical formulae