[GiNaC-list] products of exponentials

Vladimir V. Kisil kisilv at maths.leeds.ac.uk
Thu Dec 8 01:10:01 CET 2011


		Hi,

>>>>> On Wed, 7 Dec 2011 15:22:59 -0800, Levi Boyles <leviboyles at 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 at maths.leeds.ac.uk
--                      www: http://www.maths.leeds.ac.uk/~kisilv/


More information about the GiNaC-list mailing list