We are trying to develop a program to find the different roots of a nth degree polynomial using a few quite simple methods (fixed-point, bisection, newton..) and we would like to know how, when given a function, to recognise it's degree in order to choose between different root-finding methods.
Thanks