Inverse Laplace transformation is very slow

17 views
Skip to first unread message

Dilawar Singh

unread,
Jul 28, 2017, 1:20:23 AM7/28/17
to sympy
Hi list,

I am migrating some of my work from Maxima to sympy. I am trying to solve a RC circuit using Laplace Transformation. This system could be solved by Maxima in couple of seconds.

To start with, I am taking inverse Laplace transformation of following expression (script is attached with this email). Following expression arise as a solution of $Ax =b$ (script attached).

RM**2*ra/(-RM**2 + ra*(CM*RM*s + 1)*(CM*RM*ra*s + RM + ra))

It taking far too long to compute inverse laplace of this above expression. I am waiting for almost 10 minutes now. I even tried with PYPY.

Any pointers?

- Dilawar
rc_symbolic.py

Dilawar Singh

unread,
Jul 28, 2017, 1:28:27 AM7/28/17
to sympy
Sorry I posted in haste. I double checked the Maxima script and realize the mistake. There I am substituting the value of symbols with numerical values.

After replacing RM, CM, and ra with numerical value, sympy was able to solve it and quite fast (comparable to maxima).

cheers,
    Dilawar
Reply all
Reply to author
Forward
0 new messages