TComplex
Standard constructor
ctors and dtors
{}
constants
{return TComplex(0,1);}
{return TComplex(1,0);}
getters and setters
{return fRe;}
{return fIm;}
{return TMath::Sqrt(fRe*fRe+fIm*fIm);}
{return fRe*fRe+fIm*fIm;}
{return (fIm||fRe)?TMath::ATan2(fIm,fRe):0;}
Convertors
{return static_cast<Float_t>(fRe);}
{return static_cast<Int_t>(fRe);}
TMath:: extensions
{return TComplex(TMath::Sqrt(c.Rho()),0.5*c.Theta(),kTRUE);}
{return TComplex(TMath::Exp(c.fRe),c.fIm,kTRUE);}
{return TComplex(0.5*TMath::Log(c.Rho2()),c.Theta());}
{return Log(c)/TMath::Log(2);}
{return Log(c)/TMath::Log(10);}
{TComplex cc=Cos(c); return Sin(c)*Conjugate(cc)/cc.Rho2();}
{return -I()*Log(I()*c+TMath::Sign(1.,c.Im())*Sqrt(1.-c*c));}
{return -I()*Log(c+TMath::Sign(1.,c.Im())*Sqrt(c*c-1.));}
{return -0.5*I()*Log((1.+I()*c)/(1.-I()*c));}
{TComplex cc=CosH(c); return SinH(c)*Conjugate(cc)/cc.Rho2();}
{return Log(c+TMath::Sign(1.,c.Im())*Sqrt(c*c+1.));}
{return Log(c+TMath::Sign(1.,c.Im())*Sqrt(c*c-1.));}
{return 0.5*Log((1.+c)/(1.-c));}
{return c.Rho();}
{return TComplex(TMath::Power(x.Rho(),y),x.Theta()*y,kTRUE);}
{return TMath::Min(TMath::Finite(c.Re()),TMath::Finite(c.Im()));}
{return TMath::Max(TMath::IsNaN(c.Re()),TMath::IsNaN(c.Im()));}
{return a.Rho()<=b.Rho()?a:b;}
{return a.Rho()>=b.Rho()?a:b;}
{return TComplex(1.,c.Theta(),kTRUE);}
{return TComplex(c.Re(),-c.Im());}
{return Max(lb,Min(c,ub));}