pythonsympycontinuous-fourier

Continuous Fourier Transform with Python / Sympy (Analytical Solution)


I recently replaced Matlab with Python because I was real;y excited by Sympy.

But now I have the following problem:

I need a way to reliably calculate continuous fourier transforms with Python. Sympy has problems with solutions including Diracs (Delta-functions) as they for example occur for trig-functions etc.

For example, if I try

fourier_transform(cos(x),x,v)

the output is 0 where it should be based on the Dirac delta function

Does anyone know, if this part of Sympy is going to be improved or if there is another way to analytically find fourier transforms with Python?

Thanks for answers or any advice in advance!


Solution

  • As far as I know, no one is currently working on this, although contributions are welcome.

    Some advice I can give:

    My best suggestion for now is to do the Fourier transforms that SymPy currently can't do manually by manipulating either FourierTransform objects or the integrals.