28 May
2007
28 May
'07
4:36 p.m.
"MD" == Martin DRUON <martin.druon@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@maths.leeds.ac.uk -- www: http://maths.leeds.ac.uk/~kisilv/