Python Forum
How to interpret Sympy inverse_fourier_transform response
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to interpret Sympy inverse_fourier_transform response
#1
I'm just starting to use Sympy for fourier transforms and am having difficulty interpreting the result. For example, I know the inverse transform of sin(pi*f)/(pi*f) is the unit pulse but I don't see how the response from Sympy describes the unit pulse:

from sympy import *
t=Symbol('t',real=True)
f=Symbol('f',real=True)
x=sin(pi*f)/(pi*f)
X=inverse_fourier_transform(x, f, t)
print 'X=', X
#X= Piecewise((-t/Abs(t) + 1, 4*t**2 > 1), (1, True))
The way I read it is X=-t/Abs(t)+1 for 4*t**2>1, and 1 otherwise. The unit pulse is 0 for t<-1/2 and t>1/2. I don't see how -t/Abs(t) + 1, 4*t**2 > 1 says this. If t=-1 for example, -t/Abs(t)+1 evaluates to -(-1)/1 + 1 = 2.

Can someone explain?
Reply


Messages In This Thread
How to interpret Sympy inverse_fourier_transform response - by ken72 - Oct-04-2017, 04:35 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Algebric equation with Sympy pooyan89 3 2,024 Jul-17-2019, 11:34 PM
Last Post: scidam
  trying to download sympy SympyHelp 4 5,233 Apr-23-2017, 10:50 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020