I have been trying to find the minimum and maximum of a list of numbers. The list of numbers are fed into the input of a function component. I then put the expression Max(x). Although there are no errors, the output is simply the list of number again. I have tried flattening the list but all to no avail.
Min and Max only work on 2 numbers. They return the highest or lowest one.
You want to use the Bounds component to create an Interval (Domain) that contains all the numbers in a list.
You could also sort the list of numbers, then retrieve the first and last element in the sorted list.