On Nov 27, 2:52 am, Laurent <[email protected]> wrote: > Marshall Hamilton ha scritto:> Perhaps this is the kind of thing you want? > > > sage: var('x') > > sage: f = -x^4 + 9*x^3 - 23*x^2 + 31*x - 15 > > sage: f.find_maximum_on_interval(0,6) > > Is it equivalent to what we get with > plot(f,(0,6)).get_minmax_data() > ?
> Laurent No, they are very different. I think get_minmax_data is just finding the max and min of the plotted points of the function, so the values will depend on the plot_points parameter for example. The find_maximum_on_interval function uses scipy's fminbound function. -Marshall -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org
