sympy/sympy.github.com

couldn't get the fourier transform of a symbolic function

YousefSaber opened this issue · 0 comments

this is the syntax

joseph@joseph-X541UJ:~$ python3
Python 3.7.5 (default, Nov 20 2019, 09:21:52) 
[GCC 9.2.1 20191008] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from sympy import *
>>> from sympy.abc import w , f , t ,a
>>> f = 30*cos(2*pi*(10**4)*t)
>>> from numpy import *
>>> fourier_transform(f,t,w)
Killed

after I type ( fourier_transform(f,t,w)) a single thread of my i5 7th gen CPU reaches 100% of usage and my screen freezes for some time before showing the message ( killed)

while using Octave to get the fourier transform for the same function works fine without any issues

>> syms f w t
Symbolic pkg v2.8.0: Python communication link active, SymPy v1.3.
>> f = 30*cos(2*sym(pi)*(10^4)*t)
f = (sym) 30⋅cos(20000⋅π⋅t)
>> fourier(f,t,w)
ans = (sym) 30⋅π⋅δ(w - 20000⋅π) + 30⋅π⋅δ(w + 20000⋅π)
>>

please fix that

OS : Ubuntu 19.10
Python v3.7.5
sympy v1.5