On Jan 3, 2009, at 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?
This function is not defined at the left endpoint, so you are probably violating some assumption on the underlying optimization algorithm used. However, I would much rather have an error here than an incorrect value. - Robert --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---