ROOT  6.06/08
Reference Guide
Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
TComplex Class Reference

Definition at line 29 of file TComplex.h.

Public Member Functions

 TComplex ()
 
 TComplex (Double_t re, Double_t im=0, Bool_t polar=kFALSE)
 Standard constructor. More...
 
virtual ~TComplex ()
 
Double_t Re () const
 
Double_t Im () const
 
Double_t Rho () const
 
Double_t Rho2 () const
 
Double_t Theta () const
 
TComplex operator() (Double_t x, Double_t y, Bool_t polar=kFALSE)
 
TComplex operator* (const TComplex &c) const
 
TComplex operator+ (const TComplex &c) const
 
TComplex operator/ (const TComplex &c) const
 
TComplex operator- (const TComplex &c) const
 
TComplex operator*= (const TComplex &c)
 
TComplex operator+= (const TComplex &c)
 
TComplex operator/= (const TComplex &c)
 
TComplex operator-= (const TComplex &c)
 
TComplex operator- ()
 
TComplex operator+ ()
 
TComplex operator* (Double_t c) const
 
TComplex operator+ (Double_t c) const
 
TComplex operator/ (Double_t c) const
 
TComplex operator- (Double_t c) const
 
 operator Double_t () const
 
 operator Float_t () const
 
 operator Int_t () const
 

Static Public Member Functions

static TComplex I ()
 
static TComplex One ()
 
static TComplex Sqrt (const TComplex &c)
 
static TComplex Exp (const TComplex &c)
 
static TComplex Log (const TComplex &c)
 
static TComplex Log2 (const TComplex &c)
 
static TComplex Log10 (const TComplex &c)
 
static TComplex Sin (const TComplex &c)
 
static TComplex Cos (const TComplex &c)
 
static TComplex Tan (const TComplex &c)
 
static TComplex ASin (const TComplex &c)
 
static TComplex ACos (const TComplex &c)
 
static TComplex ATan (const TComplex &c)
 
static TComplex SinH (const TComplex &c)
 
static TComplex CosH (const TComplex &c)
 
static TComplex TanH (const TComplex &c)
 
static TComplex ASinH (const TComplex &c)
 
static TComplex ACosH (const TComplex &c)
 
static TComplex ATanH (const TComplex &c)
 
static Double_t Abs (const TComplex &c)
 
static TComplex Power (const TComplex &x, const TComplex &y)
 
static TComplex Power (const TComplex &x, Double_t y)
 
static TComplex Power (Double_t x, const TComplex &y)
 
static TComplex Power (const TComplex &x, Int_t y)
 
static Int_t Finite (const TComplex &c)
 
static Int_t IsNaN (const TComplex &c)
 
static TComplex Min (const TComplex &a, const TComplex &b)
 
static TComplex Max (const TComplex &a, const TComplex &b)
 
static TComplex Normalize (const TComplex &c)
 
static TComplex Conjugate (const TComplex &c)
 
static TComplex Range (const TComplex &lb, const TComplex &ub, const TComplex &c)
 

Protected Attributes

Double_t fRe
 
Double_t fIm
 

Friends

TComplex operator* (Double_t d, const TComplex &c)
 
TComplex operator+ (Double_t d, const TComplex &c)
 
TComplex operator/ (Double_t d, const TComplex &c)
 
TComplex operator- (Double_t d, const TComplex &c)
 
std::ostream & operator<< (std::ostream &out, const TComplex &c)
 
std::istream & operator>> (std::istream &in, TComplex &c)
 

#include <TComplex.h>

Constructor & Destructor Documentation

§ TComplex() [1/2]

TComplex::TComplex ( )
inline

§ TComplex() [2/2]

TComplex::TComplex ( Double_t  re,
Double_t  im = 0,
Bool_t  polar = kFALSE 
)

Standard constructor.

Definition at line 27 of file TComplex.cxx.

§ ~TComplex()

virtual TComplex::~TComplex ( )
inlinevirtual

Definition at line 39 of file TComplex.h.

Member Function Documentation

§ Abs()

static Double_t TComplex::Abs ( const TComplex c)
inlinestatic

Definition at line 149 of file TComplex.h.

§ ACos()

static TComplex TComplex::ACos ( const TComplex c)
inlinestatic

Definition at line 128 of file TComplex.h.

§ ACosH()

static TComplex TComplex::ACosH ( const TComplex c)
inlinestatic

Definition at line 144 of file TComplex.h.

§ ASin()

static TComplex TComplex::ASin ( const TComplex c)
inlinestatic

Definition at line 126 of file TComplex.h.

§ ASinH()

static TComplex TComplex::ASinH ( const TComplex c)
inlinestatic

Definition at line 142 of file TComplex.h.

§ ATan()

static TComplex TComplex::ATan ( const TComplex c)
inlinestatic

Definition at line 130 of file TComplex.h.

§ ATanH()

static TComplex TComplex::ATanH ( const TComplex c)
inlinestatic

Definition at line 146 of file TComplex.h.

§ Conjugate()

static TComplex TComplex::Conjugate ( const TComplex c)
inlinestatic

Definition at line 178 of file TComplex.h.

Referenced by Tan(), and TanH().

§ Cos()

static TComplex TComplex::Cos ( const TComplex c)
inlinestatic

Definition at line 120 of file TComplex.h.

Referenced by Tan().

§ CosH()

static TComplex TComplex::CosH ( const TComplex c)
inlinestatic

Definition at line 136 of file TComplex.h.

Referenced by TanH().

§ Exp()

static TComplex TComplex::Exp ( const TComplex c)
inlinestatic

Definition at line 108 of file TComplex.h.

§ Finite()

static Int_t TComplex::Finite ( const TComplex c)
inlinestatic

Definition at line 167 of file TComplex.h.

§ I()

static TComplex TComplex::I ( )
inlinestatic

Definition at line 42 of file TComplex.h.

Referenced by ACos(), ASin(), and ATan().

§ Im()

Double_t TComplex::Im ( ) const
inline

§ IsNaN()

static Int_t TComplex::IsNaN ( const TComplex c)
inlinestatic

Definition at line 169 of file TComplex.h.

§ Log()

static TComplex TComplex::Log ( const TComplex c)
inlinestatic

Definition at line 110 of file TComplex.h.

Referenced by ACos(), ACosH(), ASin(), ASinH(), ATan(), ATanH(), Log10(), and Log2().

§ Log10()

static TComplex TComplex::Log10 ( const TComplex c)
inlinestatic

Definition at line 114 of file TComplex.h.

§ Log2()

static TComplex TComplex::Log2 ( const TComplex c)
inlinestatic

Definition at line 112 of file TComplex.h.

§ Max()

static TComplex TComplex::Max ( const TComplex a,
const TComplex b 
)
inlinestatic

Definition at line 174 of file TComplex.h.

Referenced by Range().

§ Min()

static TComplex TComplex::Min ( const TComplex a,
const TComplex b 
)
inlinestatic

Definition at line 172 of file TComplex.h.

Referenced by Range().

§ Normalize()

static TComplex TComplex::Normalize ( const TComplex c)
inlinestatic

Definition at line 176 of file TComplex.h.

§ One()

static TComplex TComplex::One ( )
inlinestatic

Definition at line 43 of file TComplex.h.

§ operator Double_t()

TComplex::operator Double_t ( ) const
inline

Definition at line 100 of file TComplex.h.

§ operator Float_t()

TComplex::operator Float_t ( ) const
inline

Definition at line 101 of file TComplex.h.

§ operator Int_t()

TComplex::operator Int_t ( ) const
inline

Definition at line 102 of file TComplex.h.

§ operator()()

TComplex TComplex::operator() ( Double_t  x,
Double_t  y,
Bool_t  polar = kFALSE 
)
inline

Definition at line 51 of file TComplex.h.

§ operator*() [1/2]

TComplex TComplex::operator* ( const TComplex c) const
inline

Definition at line 56 of file TComplex.h.

§ operator*() [2/2]

TComplex TComplex::operator* ( Double_t  c) const
inline

Definition at line 80 of file TComplex.h.

§ operator*=()

TComplex TComplex::operator*= ( const TComplex c)
inline

Definition at line 65 of file TComplex.h.

§ operator+() [1/3]

TComplex TComplex::operator+ ( const TComplex c) const
inline

Definition at line 58 of file TComplex.h.

§ operator+() [2/3]

TComplex TComplex::operator+ ( )
inline

Definition at line 76 of file TComplex.h.

§ operator+() [3/3]

TComplex TComplex::operator+ ( Double_t  c) const
inline

Definition at line 82 of file TComplex.h.

§ operator+=()

TComplex TComplex::operator+= ( const TComplex c)
inline

Definition at line 67 of file TComplex.h.

§ operator-() [1/3]

TComplex TComplex::operator- ( const TComplex c) const
inline

Definition at line 62 of file TComplex.h.

§ operator-() [2/3]

TComplex TComplex::operator- ( )
inline

Definition at line 74 of file TComplex.h.

§ operator-() [3/3]

TComplex TComplex::operator- ( Double_t  c) const
inline

Definition at line 86 of file TComplex.h.

§ operator-=()

TComplex TComplex::operator-= ( const TComplex c)
inline

Definition at line 71 of file TComplex.h.

§ operator/() [1/2]

TComplex TComplex::operator/ ( const TComplex c) const
inline

Definition at line 60 of file TComplex.h.

§ operator/() [2/2]

TComplex TComplex::operator/ ( Double_t  c) const
inline

Definition at line 84 of file TComplex.h.

§ operator/=()

TComplex TComplex::operator/= ( const TComplex c)
inline

Definition at line 69 of file TComplex.h.

§ Power() [1/4]

static TComplex TComplex::Power ( const TComplex x,
const TComplex y 
)
inlinestatic

Definition at line 152 of file TComplex.h.

§ Power() [2/4]

static TComplex TComplex::Power ( const TComplex x,
Double_t  y 
)
inlinestatic

Definition at line 157 of file TComplex.h.

§ Power() [3/4]

static TComplex TComplex::Power ( Double_t  x,
const TComplex y 
)
inlinestatic

Definition at line 159 of file TComplex.h.

§ Power() [4/4]

static TComplex TComplex::Power ( const TComplex x,
Int_t  y 
)
inlinestatic

Definition at line 164 of file TComplex.h.

§ Range()

static TComplex TComplex::Range ( const TComplex lb,
const TComplex ub,
const TComplex c 
)
inlinestatic

Definition at line 180 of file TComplex.h.

§ Re()

Double_t TComplex::Re ( ) const
inline

§ Rho()

Double_t TComplex::Rho ( ) const
inline

Definition at line 48 of file TComplex.h.

Referenced by Abs(), Max(), Min(), Power(), and Sqrt().

§ Rho2()

Double_t TComplex::Rho2 ( ) const
inline

Definition at line 49 of file TComplex.h.

Referenced by Log(), operator/(), Tan(), and TanH().

§ Sin()

static TComplex TComplex::Sin ( const TComplex c)
inlinestatic

Definition at line 117 of file TComplex.h.

Referenced by Tan().

§ SinH()

static TComplex TComplex::SinH ( const TComplex c)
inlinestatic

Definition at line 133 of file TComplex.h.

Referenced by TanH().

§ Sqrt()

static TComplex TComplex::Sqrt ( const TComplex c)
inlinestatic

Definition at line 105 of file TComplex.h.

Referenced by ACos(), ACosH(), ASin(), and ASinH().

§ Tan()

static TComplex TComplex::Tan ( const TComplex c)
inlinestatic

Definition at line 123 of file TComplex.h.

§ TanH()

static TComplex TComplex::TanH ( const TComplex c)
inlinestatic

Definition at line 139 of file TComplex.h.

§ Theta()

Double_t TComplex::Theta ( ) const
inline

Definition at line 50 of file TComplex.h.

Referenced by Log(), Normalize(), Power(), and Sqrt().

Friends And Related Function Documentation

§ operator*

TComplex operator* ( Double_t  d,
const TComplex c 
)
friend

Definition at line 90 of file TComplex.h.

§ operator+

TComplex operator+ ( Double_t  d,
const TComplex c 
)
friend

Definition at line 92 of file TComplex.h.

§ operator-

TComplex operator- ( Double_t  d,
const TComplex c 
)
friend

Definition at line 96 of file TComplex.h.

§ operator/

TComplex operator/ ( Double_t  d,
const TComplex c 
)
friend

Definition at line 94 of file TComplex.h.

§ operator<<

std::ostream& operator<< ( std::ostream &  out,
const TComplex c 
)
friend

Definition at line 41 of file TComplex.cxx.

Referenced by Range().

§ operator>>

std::istream& operator>> ( std::istream &  in,
TComplex c 
)
friend

Definition at line 49 of file TComplex.cxx.

Referenced by Range().

Member Data Documentation

§ fIm

Double_t TComplex::fIm
protected

§ fRe

Double_t TComplex::fRe
protected

The documentation for this class was generated from the following files: