 Everywhere else, the function takes the value 2.Thus, the essential supremum and the essential infimum of this function are both 2.As another example, consider the function 
where Q denotes the rational numbers.