ROOT  6.06/09
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)
 
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::TComplex ( )
inline
TComplex::TComplex ( Double_t  re,
Double_t  im = 0,
Bool_t  polar = kFALSE 
)
virtual TComplex::~TComplex ( )
inlinevirtual

Definition at line 39 of file TComplex.h.

Member Function Documentation

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

Definition at line 149 of file TComplex.h.

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

Definition at line 128 of file TComplex.h.

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

Definition at line 144 of file TComplex.h.

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

Definition at line 126 of file TComplex.h.

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

Definition at line 142 of file TComplex.h.

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

Definition at line 130 of file TComplex.h.

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

Definition at line 146 of file TComplex.h.

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

Definition at line 178 of file TComplex.h.

Referenced by Tan(), and TanH().

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

Definition at line 120 of file TComplex.h.

Referenced by Tan().

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

Definition at line 136 of file TComplex.h.

Referenced by TanH().

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

Definition at line 108 of file TComplex.h.

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

Definition at line 167 of file TComplex.h.

static TComplex TComplex::I ( )
inlinestatic

Definition at line 42 of file TComplex.h.

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

Double_t TComplex::Im ( ) const
inline
static Int_t TComplex::IsNaN ( const TComplex c)
inlinestatic

Definition at line 169 of file TComplex.h.

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().

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

Definition at line 114 of file TComplex.h.

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

Definition at line 112 of file TComplex.h.

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

Definition at line 174 of file TComplex.h.

Referenced by Range().

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

Definition at line 172 of file TComplex.h.

Referenced by Range().

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

Definition at line 176 of file TComplex.h.

static TComplex TComplex::One ( )
inlinestatic

Definition at line 43 of file TComplex.h.

TComplex::operator Double_t ( ) const
inline

Definition at line 100 of file TComplex.h.

TComplex::operator Float_t ( ) const
inline

Definition at line 101 of file TComplex.h.

TComplex::operator Int_t ( ) const
inline

Definition at line 102 of file TComplex.h.

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

Definition at line 51 of file TComplex.h.

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

Definition at line 56 of file TComplex.h.

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

Definition at line 80 of file TComplex.h.

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

Definition at line 65 of file TComplex.h.

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

Definition at line 58 of file TComplex.h.

TComplex TComplex::operator+ ( )
inline

Definition at line 76 of file TComplex.h.

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

Definition at line 82 of file TComplex.h.

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

Definition at line 67 of file TComplex.h.

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

Definition at line 62 of file TComplex.h.

TComplex TComplex::operator- ( )
inline

Definition at line 74 of file TComplex.h.

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

Definition at line 86 of file TComplex.h.

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

Definition at line 71 of file TComplex.h.

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

Definition at line 60 of file TComplex.h.

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

Definition at line 84 of file TComplex.h.

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

Definition at line 69 of file TComplex.h.

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

Definition at line 152 of file TComplex.h.

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

Definition at line 157 of file TComplex.h.

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

Definition at line 159 of file TComplex.h.

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

Definition at line 164 of file TComplex.h.

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

Definition at line 180 of file TComplex.h.

Double_t TComplex::Re ( ) const
inline
Double_t TComplex::Rho ( ) const
inline

Definition at line 48 of file TComplex.h.

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

Double_t TComplex::Rho2 ( ) const
inline

Definition at line 49 of file TComplex.h.

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

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

Definition at line 117 of file TComplex.h.

Referenced by Tan().

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

Definition at line 133 of file TComplex.h.

Referenced by TanH().

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

Definition at line 105 of file TComplex.h.

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

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

Definition at line 123 of file TComplex.h.

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

Definition at line 139 of file TComplex.h.

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

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

Definition at line 90 of file TComplex.h.

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

Definition at line 92 of file TComplex.h.

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

Definition at line 96 of file TComplex.h.

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

Definition at line 94 of file TComplex.h.

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

Definition at line 41 of file TComplex.cxx.

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

Definition at line 49 of file TComplex.cxx.

Member Data Documentation

Double_t TComplex::fIm
protected
Double_t TComplex::fRe
protected

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