- #1
Jiho
- 20
- 4
I run sympy.fourier_transform.
a.subs({k:1}).evalf() is number. It's ok. But problem is FT.subs({s:1,k:1}).evalf(). It is not number even I applied .evalf() . I want to get value of 'number'. What is the problem??
Now I'm using sympy version1.3, python version 3.7.1. This code was well run at sympy version 1.1.
Python:
from sympy import fourier_transform, exp,symbols
from sympy.abc import x, k
a=fourier_transform(exp(-x**2), x, k)
s=symbols('s')
Ori=(s)*exp(-(x**2)/(s**2))
FT=fourier_transform(Ori,x,k)
a.subs({k:1}).evalf()
>>>9.16769605680502e-5
FT.subs({s:1,k:1}).evalf()
>>>FourierTransform(exp(-x**2), x, 1)
Now I'm using sympy version1.3, python version 3.7.1. This code was well run at sympy version 1.1.
Last edited: