Skip to Main Content Skip to Search
Product Documentation

dirac - Dirac delta

Syntax

dirac(x)

Description

dirac(x) returns the Dirac delta function of x.

The Dirac delta function, dirac, has the value 0 for all x not equal to 0 and the value Inf for x = 0. Several Symbolic Math Toolbox functions return answers in terms of dirac.

Examples

dirac has the property that

for any function f and real number a. For example:

syms x a
a = 5;
int(dirac(x-a)*sin(x),-inf, inf)
ans = 
sin(5)

dirac also has the following relationship to the function heaviside:

syms x
diff(heaviside(x),x)
ans = 
dirac(x)

See Also

heaviside

  


Free Symbolic Math Interactive Kit

See how symbolic computations can help you find analytical solutions to math and engineering problems.

Get free kit

Trials Available

Try the latest version of symbolic math products.

Get trial software
 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS