# Julia package to find all local extrema of a function in a interval?

**URL:** <https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067>\
**Category:** Specific Domains\
**Tags:** optimization\
**Created:** [June 8, 2019, 5:19am UTC](https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067 "2019-06-08T05:19:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [June 8, 2019, 5:19am UTC](https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067/1 "2019-06-08T05:19:12Z")

</div>

i’m looking for a package to find a list of local minima of an univariate function, in a given interval, someone knows if something like this exists?

---

<div class="post-metadata">

**Author:** ![bernhard](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bernhard/32/2619_2.png) [@bernhard](https://discourse.julialang.org/u/bernhard)\
**Post date:** [June 8, 2019, 5:40am UTC](https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067/2 "2019-06-08T05:40:58Z")

</div>

have you considered this

> [@\[Ann\] IntervalRootFinding.jl for finding all roots of a multivariate function](https://discourse.julialang.org/t/ann-intervalrootfinding-jl-for-finding-all-roots-of-a-multivariate-function/9515):
>
> We are excited to announce v0.2 of the [IntervalRootFinding.jl](https://github.com/JuliaIntervals/IntervalRootFinding.jl/) package, which has been completely rewritten from scratch. This package exports a function roots that is guaranteed to find all roots of a given function \mathbb{R}^n \to \mathbb{R}^n in a given box X \subseteq \mathbb{R}^n (or tell you that it is unable to do so). Functions are written with standard Julia syntax; no macros or other magic are required! It is able to do this thanks to the power of interval arithmetic methods, based …

---

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [June 8, 2019, 5:51am UTC](https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067/3 "2019-06-08T05:51:54Z")

</div>

I’m looking into this, thanks!

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [June 8, 2019, 5:55am UTC](https://discourse.julialang.org/t/julia-package-to-find-all-local-extrema-of-a-function-in-a-interval/25067/4 "2019-06-08T05:55:35Z")

</div>

There’s also Roots.jl
