Open In App

sympy.integrals.transforms.sine_transform() in python

Last Updated : 10 Jul, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report

With the help of sine_transform() method, we can compute the sine transformation by getting the transformed function by using this method.

Sine transformation

Syntax : sine_transform(f, x, k, **hints)

Return : Return the transformed function.

Example #1 :

In this example we can see that by using sine_transform() method, we are able to compute the sine transformation and returned the transformed function.

Python3
# import sine_transform
from sympy import sine_transform, exp
from sympy.abc import x, k, a

# Using sine_transform() method
gfg = sine_transform(x * exp(-a * x**2), x, k)

print(gfg)

Output :

sqrt(2)*k*exp(-k**2/(4*a))/(4*a**(3/2))

Example #2 :

Python3
# import sine_transform
from sympy import sine_transform, exp
from sympy.abc import x, k, a

# Using sine_transform() method
gfg = sine_transform(x * exp(-a * x**2), x, 4)

print(gfg)

Output :

sqrt(2)*exp(-4/a)/a**(3/2)


Practice Tags :

Similar Reads