[GiNaC-list] real and imaginary parts of an expression
Vladimir Kisil
kisilv at maths.leeds.ac.uk
Mon May 28 16:36:01 CEST 2007
>>>>> "MD" == Martin DRUON <martin.druon at wanadoo.fr> writes:
MD> hello, I would like to know how I can get the real part and the
MD> imaginary part of an expression (GiNaC::ex)...
You may use the method conjugate(): the expression
(e+e.conjugate())/2 will give you (in most cases) the real part of e.
Best wishes,
Vladimir
--
Vladimir V. Kisil email: kisilv at maths.leeds.ac.uk
-- www: http://maths.leeds.ac.uk/~kisilv/
More information about the GiNaC-list
mailing list