A modification of the method of Lehmann-Filhés for determining the orbit of a spectroscopic double star