I was reading the Wikipedia article about Convex Functions 1. The article states that:
However, a function whose sublevel sets are convex sets may fail to be a convex function.
However, I have trouble imagining a function like this.
Can anyone provide an example of this situation?