Suppose I have two functions $p(x,y)$ and $q(x,y)$. I would like to check if there is any pair $(x,y)$ within a range $(0,0)$ to $(\hat{x},\hat{y})$ for which $p(x,y)=q(x,y)$. And if such pair exists, I would like to print them. Is it possible to do with Mathematica?
Update: As per the link provided by "bbgodfrey", I tried the following input:
f[x_, y_] := -Cos[y] + 2 y Cos[y^2] Cos[2 x];
g[x_, y_] := -Sin[x] + 2Sin[y^2] Sin[2 x];
pts = FindCrossings2D[{f, g}, {x, -7/2, 4}, {y,-9/5, 21/5}]
And got the following output:
FindCrossings2D[{f, g}, {x, -(7/2), 4}, {y, -(9/5), 21/5}]
I wish I could get the list of all crossings as $(x,y)$ coordinates within the specified range.


p[x, y] - q[x, y]. – bbgodfrey Jan 09 '17 at 04:54FindAllCrossings2Dfunction, it is not a built in MMA function. It's definition (in terms of other built in MMA functions) is given in the first grey cell of the answer linked to by bbgodfrey; copy that code, evaluate it, then your above code should work. – Quantum_Oli Jan 09 '17 at 06:31FindAllCrossings2D. Spell its name correctly,FindAllCrossings2D, notFindCrossings2D, and it needs{f[x,y], g[x,y]}, not just{f,g}in its argument list. (Side note, undefined functions (and variables) will appear blue in your notebook, once defined they will turn black). – Quantum_Oli Jan 09 '17 at 06:34