On Sun, 26 Jul 2020 at 21:56, Mikhael Myara <[email protected]> wrote: > > And I obtain what follows. I am surprized that inserting values instead of > some symbols disables sympy simplification. In some more complex cases, the > computation times required for simplification are huge and lead to non > simplified expressions.
I think that inserting Float rather than Symbol or Rational can lead to significant problems for some polynomial type simplifications such as cancellation of factors. The long computation times might be the result of converting Float to Rational somewhere which can sometimes lead to very polynomials with high order or large coefficients. It's hard to investigate that without self-contained code demonstrating the problem though. Do you have a reason to think that expression can be simplified much? The main thing I notice is that it has repeating subexpressions so something like cse might be useful: https://docs.sympy.org/latest/modules/rewriting.html#common-subexpression-detection-and-collection Oscar -- 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/CAHVvXxRMDjsOj62-8VvQCkc9MDyrE570z3rxHSyXwRZfjMSOSA%40mail.gmail.com.
