I was studying for some quizzes when I stumbled upon this question:
The function $$f(x,y)=\begin{cases} \frac{\sin (x-y)}{x-y} &x\neq y\\ h & x=y \\ \end{cases} $$
is continuous. What is the value of $h$?
My work:
I noticed that the answer found in my book is $h = 1,$ so I think I can get $h = 1$ by doing this:
$$\lim_{(x,y)\to(0,0)} \frac{\sin (x-y)}{x-y} = 1$$
because everybody knows that
$$\lim_{x\to0} \frac{\sin x}{x} = 1$$
Is my train of logic correct?