I'm very concerned. As far as I know, the output should be:
$x < 0\ ||\ x> 0$
$y < 0\ ||\ y> 0$
Mathematica Stack Exchange is a question and answer site for users of Wolfram Mathematica. It only takes a minute to sign up.
Sign up to join this communityObserve that
g[x]
returns
x
So, when you write
FunctionDomain[g[x], x, Reals]
it is really writing
FunctionDomain[x, x, Reals]
On way to bypass, is to Hold
like so:
FunctionDomain[Hold[x^2/x], x, Reals]
FunctionRange[Hold[x^2/x], x, y, Reals]
g[x_] := x^2/x // Hold
and then FunctionDomain[g[x], x, Reals]
but I am not sure how satisfactory that is for your purposes
$\endgroup$