# Find minimum value of polynomial

I have a univariate polynomial with integer coefficients over [0,1] and I would like to find a minimum value. Is there an easy way to do that in sage?

Find minimum value of polynomial

add a comment

2

Try the following:

```
f(x)=(x-3)*(x+2)^2
f.find_minimum_on_interval(0,1)
```

You have to remember that: f.find_minimum_on_interval(0,1) does NOT include the end points. This call on f(x) = (x-3)*(x+2)^2 will produce these results: (-17.99999991390072, 0.99999997130024143) While over the interval [0,1] the minimum is located at x=1 If you want to include the endpoints you would need to write something like this: min(f(0), f.find_minimum_on_interval(0,1)[0], f(1))

Asked: **
2013-07-29 07:20:42 -0500
**

Seen: **170 times**

Last updated: **Jul 29 '13**

Model of polynomial with integer coefficients

lcm and gcd of polynomials over the irrationals

What is the effect of declaring a polynomial `sparse'?

Creating an array of variables

Finding Gaussian integer points on elliptic curves

Coefficients of a constant polynomial

How to cast a string with an exponent from sys.argv to an Integer ?

Convert expression to univariate polynomial over symbolic ring properly

When does 1/2=0 ? (python's integer division Vs Sage's exact fractions)

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.