At the community conference, there was a question that asked us to check if a specific point was a maximum value. If you define a function f, then $f.maxima gives a mathlist of ordered pairs that are local maximums. I would like a way to check if a particular value, say (4,3) is an element of this mathlist/set.
Yes, there is, though it took me awhile to remember how it works. The operator name is elementof. (It’s not in like you might have thought.)
For example, (4,3) elementof $f.maxima will evaluate to true in a boolean condition if f has a maximum of 3 when x=4.
1 Like
This worked perfectly by the way. Thank you! I was definitely looking for “in”