function_range(f, symbol, domain) returns the range of the real
function f of symbol over the real set domain, as SymPy's
function_range(): the function is followed on each interval of its
continuous domain through its limits at open ends, its values at closed
ends and its critical points.