Re: [sage-support] Re: Finding a maximum value of a function on an interval?

2009-11-27 Thread 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. > OK, so I deduce that

[sage-support] Re: Finding a maximum value of a function on an interval?

2009-11-27 Thread Marshall Hampton
On Nov 27, 2:52 am, Laurent 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(

Re: [sage-support] Re: Finding a maximum value of a function on an interval?

2009-11-27 Thread Laurent
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() ? > you can get the documentation for t

[sage-support] Re: Finding a maximum value of a function on an interval?

2009-11-26 Thread Marshall Hampton
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) (69.216599407272753, 4.6263272799362944) If you do sage: f.find_maximum_on_interval? you can get the documentation for that. For symbolic answers you co