janwillem wrote: > I have a result containing a couple of terms of the form like exp(- > dt_0*q - dt_1*k_1 - dt_2*k) and exp(-dt_0*k - dt_1*k_1 - dt_2*k). I > know that combining the terms with identical expressions in the exp() > can reduce my result from half a page to a few lines. However, I > cannot get it done with sympy. I think I tried all options in the > pages linked from http://sympy.googlecode.com/svn/api/sympy.simplify.htm. > In particular also collect(my_expression, exp(-dt_0*q - dt_1*k_1 - > dt_2*k)) and the like.
most functions for simplifying live in sympy/symplify/symplify.py . In particular, powsimp seems to be what you are looking for. > > Help, guidance and suggestions welcome, thanks, Janwillem If this does not help, please send a test case and we'll try to fix powsimp > > > -- http://fseoane.net/blog/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sympy" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sympy?hl=en -~----------~----~----~----~------~----~------~--~---
