Application of charged and neutral beams in measurements of gyromagnetic ratios