Wednesday, January 21, 2026
HomeLanguagessympy.integrals.deltafunctions.deltaintegrate() in python

sympy.integrals.deltafunctions.deltaintegrate() in python

With the help of deltaintegrate() method, we can compute the integral of delta function and returns the integrated function by using this method. This method uses delta expressions to perform integration.

Syntax : deltaintegrate(f, x)

Return : Return the integrated function.

Example #1 :

In this example we can see that by using deltaintegrate() method, we are able to get the integral of a delta function by using this method and it will return the integrated delta expressions.

Python3




# import deltaintegrate
from sympy.abc import x, y, z
from sympy.integrals.deltafunctions import deltaintegrate
from sympy import sin, cos, tan, DiracDelta, Heaviside
  
# Using deltaintegrate() method
gfg = deltaintegrate(tan(x)*sin(x)*cos(x)*DiracDelta(x**2 - 1), x)
  
print(gfg)


Output :

sin(1)*cos(1)*tan(1)*Heaviside(x – 1)/2 + sin(1)*cos(1)*tan(1)*Heaviside(x + 1)/2

Example #2 :

Python3




# import deltaintegrate
from sympy.abc import x, y, z
from sympy.integrals.deltafunctions import deltaintegrate
from sympy import sin, cos, DiracDelta, Heaviside
  
# Using deltaintegrate() method
gfg = deltaintegrate(sin(y)*DiracDelta(x - z)*DiracDelta(y - z), y)
  
print(gfg)


Output :

sin(z)*DiracDelta(x – z)*Heaviside(y – z)

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

2 COMMENTS

Most Popular

Dominic
32475 POSTS0 COMMENTS
Milvus
119 POSTS0 COMMENTS
Nango Kala
6847 POSTS0 COMMENTS
Nicole Veronica
11977 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12064 POSTS0 COMMENTS
Shaida Kate Naidoo
6986 POSTS0 COMMENTS
Ted Musemwa
7220 POSTS0 COMMENTS
Thapelo Manthata
6933 POSTS0 COMMENTS
Umr Jansen
6912 POSTS0 COMMENTS