Hi Javier,
I'm not sure exactly the problem with the example you showed. I think
it's a bug somewhere.
It is usually better not to use floats in sympy. With exact rational
numbers your example works for me:
In [17]: inverse_laplace_transform(S.Half/(S.Half*s+1)*1/s, s, t)
Out[17]:
-2⋅t
θ(t) ℯ ⋅θ(t)
──── - ─────────
2 2
Oscar
On Wed, 6 May 2020 at 18:36, Javier Arantegui
<[email protected]> wrote:
>
> Hello!
>
> I'm using Sympy 1.5.1 and Python is 3.7.7. Both installed using Anaconda.
>
> I have tried to do an inverse Laplace transform and I got an error:
>
> inverse_laplace_transform(0.5/(.5*s+1)*1/s, s, t)
>
> The error message is quite long, tell me if you need it.
>
> I spent 10 minutes in front of my students trying to think what was wrong...
>
> Finally, I was able to solve it with an easy change:
>
> inverse_laplace_transform(0.5*2/(2*(.5*s+1))*1/s, s, t)
>
>
> Best regards,
>
> Javier
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/aa5c4270-6c71-485b-8354-b5ea39e9c380%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/CAHVvXxQkmTvjGMWwe40mw3EFrk2eF2%2BY3hjiPpT9Xde8OYJb0A%40mail.gmail.com.