Dear all,
When I try to use following syntax to obtain the inverse laplace result, the system raise error information TypeError("cannot create mpf from " + repr(x)).
>>>
import mpmath as mp
from functools import reduce
s = sp.symbols('s')
x = sp.symbols('x')
y = sp.symbols('y')
wse =[mp.exp(-0.5*s)/(s + 1), mp.exp(-2*s)/(3*s + 1)]
a = (reduce(lambda x,y: x*y, wse[0]))
fp = lambda s:a/s
b = mp.invertlaplace(fp,t=10,method='talbot')
print(b)
>>>
Since the list of wse will change in my loops, I didn't do the inverse laplace transfer directly.
Can someone help me to tackle the problem?
Thank you in advance.
Rupu