Also note that I have rewritten powsimp for my patch in issue 1455, so  
if it doesn't work now, try again after that patch is in.

On the other hand, until my patch gets in, SymPy should automatically  
combine exponents with a common base, including exp, so I am not sure  
how this doesn't happen for you.  Please post the exact expression  
that you are trying to simplify (if powsimp doesn't work for you).

Aaron Meurer
On Jun 22, 2009, at 3:34 PM, Fabian Pedregosa wrote:

>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to