is there an easy way to have my program find all the zeros of a polynomial, where the degree and all the coeffients of the polynomial anre user defined and the degree can be up to 180
This is a discussion on large polynomial within the C++ Programming forums, part of the General Programming Boards category; is there an easy way to have my program find all the zeros of a polynomial, where the degree and ...
is there an easy way to have my program find all the zeros of a polynomial, where the degree and all the coeffients of the polynomial anre user defined and the degree can be up to 180
There are all sorts of approaches; easy depends on your definition as mathematically it can be moderately challenging. If you google for "polynomial root solver" you will find pointers to plenty of approaches. (A "root" of a polynomial is a value at which the polynomial is zero).
I've used code that will solve a Quadratic, Cubic, or Quartic.
But 180 degree?!?! - Good friggin luck!!!!