On 25/04/2022 21:32, Thomas Ligon wrote:
I'm still learning...
   if exp != 0:
        exp = exp.subs(j, jIn, evaluate=True).subs(i, iIn, evaluate=True).subs(m, m0, evaluate=True)
and
    exp = simplify(exp, evaluate=True)
didn't have any effect. This one
    exp = exp.doit()
    print('after doit', exp)
ran for 90 minutes and I terminated it.

Thomas,

I take it you are not posting your complete code, and I just wonder if the exp() function figures in your complete code, so that using exp as a variable is causing a problem. I'd avoid using the name of a SymPy function as a variable name, just to play safe.

David

--
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/996f392e-0f9f-833d-7ea2-529863858146%40dbailey.co.uk.

Reply via email to