# Evaluating the min or max of a Number List in CL

**URL:** <https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580>\
**Category:** Questions\
**Created:** [February 6, 2021, 1:58pm UTC](https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580 "2021-02-06T13:58:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roger](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/roger/32/599_2.png) [@Roger](https://cl.desmos.com/u/Roger)\
**Post date:** [February 6, 2021, 1:58pm UTC](https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580/1 "2021-02-06T13:58:25Z")

</div>

Why this code is wrong?

```auto
numericValue("\min(${this.numberList(`T_a`)})")

```

Thank you!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [February 6, 2021, 6:13pm UTC](https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580/2 "2021-02-06T18:13:46Z")

</div>

Lists don’t really work when you call them in the CL. I think if you change to this it should work:

```auto
numericValue("\min(T_a)")

```

If not, just make a variable in the actual graph for your minimum, and call on that in the CL instead.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [February 6, 2021, 6:46pm UTC](https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580/3 "2021-02-06T18:46:28Z")

</div>

I can clarify a bit. CL won’t do any list operations except for the built in list functions. Min, max, length, elementAt (forgive me if I missed one). So max(this.numberList(`T_a`)) should work, but trying to compute the max of a list using numberList or simpleFunction won’t.

[https://teacher.desmos.com/computation-layer/documentation#functions:max](https://teacher.desmos.com/computation-layer/documentation#functions:max)

---

<div class="post-metadata">

**Author:** ![Roger](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/roger/32/599_2.png) [@Roger](https://cl.desmos.com/u/Roger)\
**Post date:** [February 6, 2021, 10:21pm UTC](https://cl.desmos.com/t/evaluating-the-min-or-max-of-a-number-list-in-cl/2580/4 "2021-02-06T22:21:19Z")

</div>

Thank you that worked!

```auto
max(this.numberList("T_a"))

```
