Hi,

due to various substitutions I have a bulky expression of the following
structure

A + exp(B*log(C) + D)

I want sympy to simplify this to

A + C**B*exp(D)

I think it boils down to the simplification of

exp(B*log(C))


which I also can't perform:

from sympy import exp, log, expand_power_exp
from sympy.abc import B, C

term = exp(B*log(C))

print term.simplify()
print term.expand()
print expand_power_exp(term)


# results
exp(B*log(C))
exp(B*log(C))
exp(B*log(C))

I think a possible way would be the following:

exp(B*log(C) + D) =  exp(B*log(C))*exp(D) =  exp(log(C))**B*exp(D)
= C**B*exp(D)


But how can I tell sympy to "see" that?

Carsten


-- 
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 post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/55AA3498.9010108%40gmx.de.
For more options, visit https://groups.google.com/d/optout.

Reply via email to