Possible Duplicate:
How to find all the local minima/maxima in a range
Sin[x]
have two points ($3\pi/2,7\pi/2$) where the same minimum ($-1$) is achieved at the range from $0$ to 4 $\pi$. I don't know how to get two points at once, if using Minimize
, only only one point can be got.
Minimize[{Sin[x], 0 <= x <= 4 Pi}, x]
the output:
{-1, {x -> (7 \[Pi])/2}}
And the last sentence of the information about Minimize
gives a definitely declaration, which almost cut off this road:
Even if the same minimum is achieved at several points, only one is returned.
Other similar function like FindMinimum
seems to be helpless either,so are there any methods to help achieve that goal?
Solve
? For example:Solve[Sin[x] == -1 && 0 <= x <= 4 π, x]
? If you don't know that-1
is the minimum, use the value fromFirst@Minimize[...]
$\endgroup$ – rm -rf♦ Sep 16 '12 at 4:44