Evaluating the min or max of a Number List in CL

Why this code is wrong?

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

Thank you!

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

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.

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

1 Like

Thank you that worked!

max(this.numberList("T_a"))