How to get the largest positive root of a polynomial



Stavros Macrakis wrote:

> Try sort(map(rhs,...)) or apply('max,map(rhs,...))
> 
> If you only want real roots, use realroots.
> 
> Does that solve your problem?
> 
>     If not how can I sort the list to get the largest positive root?
> 
> 

Using realroots is a sensible alternative if the polynomial
is small and you are not in a hurry, or if it is very
ill-conditioned and you want to isolate the roots using
exact rational arithmetic.  And you are not in a hurry.:)

Maybe sorting should be done on realparts?


RJF