I have two functions f1 and f2. They have a square region in the $x-y$ plane as their domain. They might intersect, or they might not. Example:
f1["Domain"]
f2["Domain"]
(* {{-480., -180.}, {68., 268.}} *)
(* {{-729., -429.}, {68., 268.}} *)
I want to create a piecewise function that is defined by the following characteristics. For every point {x0, y0}:
- if in exclusive
f1domain, returnf1[$x_0,y_0$], - if in exclusive
f2domain, returnf2[$x_0,y_0$], - if in intersection, return
Max[f1[$x_0,y_0$],f2[$x_0,y_0$]], - if elsewhere, return
0.
How would I be able to do this?
