On Jan 3, 4:10 pm, calcp...@aol.com wrote:
> sage: plot(x^2*log(x,2)-1, 0,2)
> [nice plot so you can understand what is going on]
>
> sage: find_root(x^2*log(x,2)-1,1, 2)
> 1.4142135623730951
> <<
>
> Hi, I'm trying out SAGE for the first time, so I entered what you
> suggested (see above).
>
> Now, from the plot, it there seems to be no other roots between 0 and 2
> so I entered
>
> sage: find_root(x^2*log(x,2)-1,0, 2)
> and got the root = 0.0
>
> what am I missing here?

Nope, this is issue with numpy likely. For example:

sage: sage: find_root(1/(x-1)+1,0, 2)
0.0
sage: sage: find_root(1/(x-1)+1,0.00001, 2)
1.0000000000011564

It seems that there is trouble when you have a singularity for one of
that starting points. Obviously this needs to be fixed :)


> TIA,
> AJG

Cheers,

Michael

> A. Jorge Garcia
> Teacher and Professor
> Applied Math, Physics and Comp Sci
> Baldwin High and Nassau CC
>
> The Calculus and CompSci Project Online!http://calcpage.tripod.com
>
> -----Original Message-----
> From: William Stein <wst...@gmail.com>
> To: sage-support@googlegroups.com
> Sent: Sat, 3 Jan 2009 6:54 pm
> Subject: [sage-support] Re: How to make Sage to solve the equation?
--~--~---------~--~----~------------~-------~--~----~
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
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to