I have a function of two variables, f[x_, y_]
, and I would like to restrict the domain to values of x
and y
greater than zero. How do I do this?
I also want to plot the function for restricted values. I have tried to use RegionFunction -> Function[{x, y}, ...]
, but this doesn't work.
f[x_?Positive, y_?Positive] := ...
$\endgroup$x ∈ {x_min, x_max}
andy ∈ {y_min, y_max}
. If doesn't work for you, please tell us what is the shape of the domain you have in mind. $\endgroup$