import sympy,math
print "To find the fourier sin integral"
x = sympy.Symbol('x')
t = sympy.Symbol('t')
u = sympy.Symbol('u')
fs = 2/math.pi*sympy.integrate(sympy.sin(u*x),(u,0,sympy.oo))*(sympy.integrate(x**0*sympy.sin(u*t),(t,0,sympy.oo)))
print fs
import sympy
print "To find the fourier transform of given function"
x = sympy.Symbol('x')
s = sympy.Symbol('s')
F = sympy.integrate(sympy.exp(1j*s*x),(x,-1,1))
print F
F1 = sympy.integrate(sympy.sin(x)/x,(x,0,sympy.oo))
print F1
import sympy,numpy
print "To find the fourier transform of given function"
x = sympy.Symbol('x')
s = sympy.Symbol('s')
F = sympy.integrate(sympy.exp(1j*s*x)*(1-x**2),(x,-1,1))
print F
F1 = sympy.integrals.Integral((x*sympy.cos(x)-sympy.sin(x))/x**3*sympy.cos(x/2),(x,0,numpy.inf))
print F1
import sympy,math
print "To find the fourier sin integral"
x = sympy.Symbol('x')
s = sympy.Symbol('s')
m = sympy.Symbol('m')
fs = sympy.integrate(sympy.sin(s*x)*sympy.exp(-x),(x,0,sympy.oo))
print fs
f = sympy.integrate(x*sympy.sin(m*x)/(1+x**2),(x,0,sympy.oo))
print f
import sympy,math
print "Fourier cosine transform."
x = sympy.Symbol('x')
s = sympy.Symbol('s')
f = sympy.integrate(x*sympy.cos(s*x),(x,0,1))+sympy.integrate((2-x)*sympy.cos(s*x),(x,1,2))
print f
import sympy,math
print "Fourier cosine transform."
x = sympy.Symbol('x')
s = sympy.Symbol('s')
a = sympy.Symbol('a')
f = sympy.integrate(sympy.exp(-a*x)/x*sympy.sin(s*x),(x,0,sympy.oo))
print f