The study of M-dwarfs as one of the foremost challenges of the modern astrophysics. CM Draconis as an eclipsing and doublelined spectroscopic binary system with period, its synthetic spectra. The radial velocity curve. Function for sets of parameters.