35 TComplex(Double_t re, Double_t im=0, Bool_t polar=kFALSE);
43 Double_t
Re()
const {
return fRe;}
44 Double_t
Im()
const {
return fIm;}
46 Double_t
Rho2()
const {
return fRe*fRe+fIm*
fIm;}
50 else { fRe =
x; fIm =
y; }
return *
this; }
63 {
return ((*
this) = (*
this) * c);}
65 {
return ((*
this) = (*
this) + c);}
67 {
return ((*
this) = (*
this) / c);}
69 {
return ((*
this) = (*
this) - c);}
97 operator Double_t ()
const {
return fRe;}
98 operator Float_t ()
const {
return static_cast<Float_t
>(
fRe);}
99 operator Int_t ()
const {
return static_cast<Int_t
>(
fRe);}
128 {
return -0.5*
I()*
Log((1.+
I()*c)/(1.-
I()*c));}
144 {
return 0.5*
Log((1.+c)/(1.-c));}
151 Double_t theta=x.
Theta();
153 lrho*y.
Im()+theta*y.
Re(),kTRUE);}
160 lrho*y.
Im()+theta*y.
Re(),kTRUE);}
178 {
return Max(lb,
Min(c,ub));}
friend std::ostream & operator<<(std::ostream &out, const TComplex &c)
TComplex operator/=(const TComplex &c)
static TComplex Power(const TComplex &x, Double_t y)
static TComplex ACosH(const TComplex &c)
static TComplex ASinH(const TComplex &c)
static TComplex Power(Double_t x, const TComplex &y)
static TComplex Normalize(const TComplex &c)
static TComplex Exp(const TComplex &c)
TComplex operator-=(const TComplex &c)
static TComplex Tan(const TComplex &c)
you should not use this method at all Int_t y
static TComplex Power(const TComplex &x, const TComplex &y)
LongDouble_t Power(LongDouble_t x, LongDouble_t y)
TComplex operator*=(const TComplex &c)
int Sign(const T &x)
sign.
static TComplex CosH(const TComplex &c)
static TComplex ACos(const TComplex &c)
static TComplex Log2(const TComplex &c)
static TComplex Range(const TComplex &lb, const TComplex &ub, const TComplex &c)
static TComplex Cos(const TComplex &c)
Int_t Finite(Double_t x)
Check if it is finite with a mask in order to be consistent in presence of fast math.
Double_t ATan2(Double_t, Double_t)
static TComplex Power(const TComplex &x, Int_t y)
static TComplex Conjugate(const TComplex &c)
friend std::istream & operator>>(std::istream &in, TComplex &c)
static TComplex TanH(const TComplex &c)
TComplex operator*(const TComplex &c) const
static TComplex Log(const TComplex &c)
static Int_t Finite(const TComplex &c)
static Double_t Abs(const TComplex &c)
static TComplex ASin(const TComplex &c)
* x
Deprecated and error prone model selection interface.
TComplex operator/(const TComplex &c) const
static TComplex ATanH(const TComplex &c)
static TComplex ATan(const TComplex &c)
static TComplex Max(const TComplex &a, const TComplex &b)
static TComplex Min(const TComplex &a, const TComplex &b)
TComplex operator()(Double_t x, Double_t y, Bool_t polar=kFALSE)
static TComplex Log10(const TComplex &c)
static Int_t IsNaN(const TComplex &c)
static TComplex Sin(const TComplex &c)
static TComplex Sqrt(const TComplex &c)
you should not use this method at all Int_t Int_t Double_t Double_t Double_t Int_t Double_t Double_t Double_t Double_t b
static TComplex SinH(const TComplex &c)
Double_t Sqrt(Double_t x)
TComplex operator+=(const TComplex &c)