eliminated useless code in `` _minpoly_cos``