Complex Exponentials in ROOT

Hi All,

I am trying to discover how to evaluate complex exponentials.

However, ROOT does not seem to know how to evaluate the complex exponential. I tested by doing:

c= TMath::Exp(TMath::Pi()*TComplex::I())

and it did not like this. Can someone please supply me some guidance?

thanks,

J

double theta=TMath::Pi();
TComplex c = TComplex::Exp(TComplex::I()*theta);
c.Re();
c.Im();