Method on @sym: kroneckerDelta (n, m)
Method on @sym: kroneckerDelta (n)

Kronecker Delta function.

Examples:

kroneckerDelta (sym(4), sym(5))
  ⇒ ans = (sym) 0
kroneckerDelta (sym(4), sym(4))
  ⇒ ans = (sym) 1
syms n m integer
kroneckerDelta (m, n)
  ⇒ ans = (sym)

      δ
       m,n

The second input defaults to zero:

kroneckerDelta (n)
  ⇒ ans = (sym)

      δ
       0,n

See also: @sym/dirac.

Package: symbolic