A problem of vectors and functions, please help
- August 15, 2020
- 2 replies
- 3968 views
Hello ptc community
I have tried to find the maximum value of a function evaluated in a defined range, however the max or min function can only be applied to vectors. I would like to know if there is a function or some way that allows me to obtain the maximum value of a function. I try to vectorize the results as attached in the example, however this is limited to functions lacking units as far as I could see. I would appreciate any help

This is the function that I have been working on, it is only referential but with this I wanted to imply that I prefer to use units during the calculation. (for more details see the attached sheet)

here I show how it is possible to vectorize a function already evaluated in a defined range

but the above is not possible if units are used


