# \`inmin\` and \`inmax\` not defined

**URL:** https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175
**Category:** General Usage
**Created:** [August 5, 2019, 1:59pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175 "2019-08-05T13:59:30Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![ryanorsinger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryanorsinger/32/8975_2.png) [@ryanorsinger](https://discourse.julialang.org/u/ryanorsinger)
#### Post date: [August 5, 2019, 1:59pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/1 "2019-08-05T13:59:30Z")

</div>

Good day!

I’m working though “Julia for Data Science” by Voulgaris, and in Chapter 2, the global functions `inmin` and `inmax` are not defined. Because the book is written in Julia 0.4. I searched [https://docs.julialang.org/en/v0.4/](https://docs.julialang.org/en/v0.4/), [https://github.com/JuliaLang/julia/issues](https://github.com/JuliaLang/julia/issues), and this forum, but did not find any references. Similar searches on google do not yield any useful results.

Does anyone know if `inmax` and `inmax` functions changed names or if they moved into a package? I appreciate any guidance I can find on what they do and where to find their replacements.

Onward and upward,  
Ryan Orsinger

---

<div class="post-metadata">

### Author: ![Zach\_Christensen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zach_christensen/32/7220_2.png) [@Zach\_Christensen](https://discourse.julialang.org/u/Zach_Christensen)
#### Post date: [August 5, 2019, 2:14pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/2 "2019-08-05T14:14:44Z")

</div>

Just for reference, if you’re using a text with any pre v1.0 and the function is missing in recent release you can use v0.7. It gives deprecation warnings for this stuff.

Is it possible that it’s a typo for `minmax`

---

<div class="post-metadata">

### Author: ![ryanorsinger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryanorsinger/32/8975_2.png) [@ryanorsinger](https://discourse.julialang.org/u/ryanorsinger)
#### Post date: [August 5, 2019, 2:16pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/3 "2019-08-05T14:16:31Z")

</div>

Thank you for sharing your advice and suggestion!

---

<div class="post-metadata">

### Author: ![cchderrick](https://avatars.discourse-cdn.com/v4/letter/c/ecd19e/32.png) [@cchderrick](https://discourse.julialang.org/u/cchderrick)
#### Post date: [August 5, 2019, 3:41pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/4 "2019-08-05T15:41:41Z")

</div>

Just from the Google Books preview, it looks like the author used `inmin` and `inmax` to find index of minimum and maximum values, so you would `argmin` and `argmax` to do in in v0.7.0+

---

<div class="post-metadata">

### Author: ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)
#### Post date: [August 5, 2019, 3:51pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/5 "2019-08-05T15:51:10Z")

</div>

Perhaps those are typos, and are meant to be `indmin` and `indmax`. They have been replaced by `argmin` and `argmax`.

---

<div class="post-metadata">

### Author: ![ryanorsinger](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ryanorsinger/32/8975_2.png) [@ryanorsinger](https://discourse.julialang.org/u/ryanorsinger)
#### Post date: [August 5, 2019, 11:31pm UTC](https://discourse.julialang.org/t/inmin-and-inmax-not-defined/27175/6 "2019-08-05T23:31:16Z")

</div>

Thanks, ya’ll! I appreciate the assistance!
