Take function bounds into account for min, max, and area
Instead of calculating function bounds as if the function was defined on the real domain, calculate it in the user-supplied interval.
The found maximum or minimum will now never fall on a point that is not part of the displayed function.
This has been annoying me for a long time when plotting physical properties which are only interesting within a certain range.