On Sun, 28 Feb 2010 23:02:08 -0800 (PST), Sharpie <ch...@sharpsteen.net> wrote:
> However, tonight I have been trying to solve an open channel flow
> problem which requires me to find the roots of:
> 
>   y^3 - 1.39027132807289 * y^2 + 0.090610488164005 == 0
> 
> find_root() does return the correct answers-- but in this case both
> positive roots are of interest so it would be nice to recover them
> both at the same time.

Hi,

How about this:

sage: R.<y> = RR[]
sage: f = y^3 - 1.39027132807289 * y^2 + 0.090610488164005
sage: f.roots()
[(-0.236040904804615, 1), (0.286518993973450, 1), (1.33979323890405, 1)]


Is this what you were hoping for?


Best,
Alex



-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to