changed return signature for semiclassical eqm function
moved series expansion searches to a separate function