Instead of $\delta(n,n) = 1$ and $\delta (n,k) = 0$, is there something that returns $0$ when the arguments are the same, and $1$ when the arguments are different. Is there a special function that does this? Is there a name for it?
Thanks!
Instead of $\delta(n,n) = 1$ and $\delta (n,k) = 0$, is there something that returns $0$ when the arguments are the same, and $1$ when the arguments are different. Is there a special function that does this? Is there a name for it?
Thanks!
Yes; the function $1 - \delta(n,k)$ should work nicely!