Sunday, March 15, 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

4 COMMENTS

Most Popular

Dominic
32506 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6882 POSTS0 COMMENTS
Nicole Veronica
12005 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12099 POSTS0 COMMENTS
Shaida Kate Naidoo
7011 POSTS0 COMMENTS
Ted Musemwa
7255 POSTS0 COMMENTS
Thapelo Manthata
6967 POSTS0 COMMENTS
Umr Jansen
6956 POSTS0 COMMENTS