8 Dec
2011
8 Dec
'11
1:10 a.m.
Hi,
On Wed, 7 Dec 2011 15:22:59 -0800, Levi Boyles <leviboyles@gmail.com> said: LB> exp(T-t_1)*exp(T-t_2) LB> and I want something like this: LB> exp(2T-t_1-t_2)
Yes, it will be nice to have, however to make it really useful you need a more general rule for evaluation: exp(a)*b*exp(c) -> exp(a+c)*b for any expression b. This one is not easy to do automatically within GiNaC for various reasons, I think. Thus if I need this sort of transformations, I implement a sub() method with wildcard adopted for the specific situation. Best wishes, Vladimir -- Vladimir V. Kisil email: kisilv@maths.leeds.ac.uk -- www: http://www.maths.leeds.ac.uk/~kisilv/