title: Mul object has no attribute real
body: <p>I'm using the code from this link: <a href="http://code.activestate.com/recipes/127469-numerical-inversion-of-laplace-transforms-through-/" rel="nofollow">http://code.activestate.com/recipes/127469-numerical-inversion-of-laplace-transforms-through-/</a></p>
  
  <p>to compute the inverse Laplace transform of a complex equation.  </p>
  
  <p>I've copied and pasted this into my ipython notebook, but after running the inversion on the function I need to invert, I get this error: </p>
  
  <p>AttributeError: 'Mul' object has no attribute 'real'</p>
  
  <p>Specifically, in the link above, the error occurs on this line: (K[j]*Fs(a[j]/t)).real</p>
  
  <p>I think it has something to do with my imports and things but I'm not sure as I'm a complete beginner to python.  But here are my imports: </p>
  
  <p>import cmath as cm
  from cmath import *</p>
  
  <p>import sympy as sym
  from sympy import *</p>
  
  <p>I know you're not suppose to use from  import *, but I was trying everything to see if I could get this to work.  And the cmath is included from the link above. </p>
  
  <p>Any insight into this error would be great, thanks!</p>