Today I was thinking, given a function $f(x)$ is there any to find the domain of the function without having to do any analysis of its contents. I first thought of what a domain really represents and decided that a domain can be thought of as 'the set of all numbers that appear in the $x$ values of points on a function'*.
From there, assuming $f$ is $\Bbb R \to \Bbb R$, then if $A$ equals the set of all solutions $x$ that satisfy $$\lim_{h\to 0^+} y\{h\ge y\ge -h\}\le f(x)$$ and $B$ is equal to the set of all solutions $x$ that satisfy $$\lim_{h\to 0^+} y\{h\ge y\ge -h\}\ge f(x)$$ then would the domain of $f$ not be $A \cup B$?
*This maybe incorrect or misleading, as others have mentioned, the word 'domain' is sometimes used in incorrect ways leading to ambiguity.