multiple root root characteristic root root of unity functional root side principal root primitive root algebraic integer rootfinding