Compute the Dirac delta (generalized) function.
The Dirac delta “function” is a generalized function (or distribution) which is zero almost everywhere, except at the origin where it is infinite.
Examples:
dirac (0) ⇒ Inf dirac (1) ⇒ 0 dirac ([-10 -1 0 1 inf]) ⇒ 0 0 Inf 0 0
See also: heaviside, @sym/dirac.
Package: symbolic