Derivation of a solution of dynamic equations of motion for quasicrystals