Oscar wrote:
> Hi all,
> thank you all for the answers.
>
> @Leo: in your example I have the same problem: if I calculate the
> roots and then I map using it, it doesn't return 0.
>
> Is there an solution to this problem?
You mean that the value of the polynomial at a root isn't zero? It
seems to me that it's highly unlikely for this to be true unless the
root and the polynomial have certain properties like the root is exactly
representable as a floating point number and the polynomial can be
evaluated without roundoff. Of course, this is a sufficient but not
necessary condition.
Ray