Documentation moved.
This entry is now part of the unified function reference. Open the unified page →
Function
src/index.ts:808nerdamer.delta
nerdamer.delta(x: Expression): ExpressionComputes the Dirac delta function (distribution). For non-zero numeric inputs, returns
`0`. At
`x = 0`the symbolic form
`dirac(0)`is returned (the Dirac delta is only meaningful under an integral or Laplace transform). For symbolic inputs, returns an unevaluated
`dirac(x)`node.
Parameters
| Name | Type | Description |
|---|---|---|
x | Expression | The input expression. |
Returns
Expression — The Dirac delta value or symbolic node.
Examples
dirac(Expression.create(5)).text() // "0"
dirac(Expression.create(0)).text() // "dirac(0)"
dirac(Expression.create('t')).text() // "dirac(t)"