Logo ROOT   6.14/05
Reference Guide
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes | Friends | List of all members
TComplex Class Reference

Definition at line 26 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 Im () const
 
 operator Double_t () const
 
 operator Float_t () const
 
 operator Int_t () const
 
TComplex operator() (Double_t x, Double_t y, Bool_t polar=kFALSE)
 
TComplex operator* (const TComplex &c) const
 
TComplex operator* (Double_t c) const
 
TComplex operator*= (const TComplex &c)
 
TComplex operator+ (const TComplex &c) const
 
TComplex operator+ ()
 
TComplex operator+ (Double_t c) const
 
TComplex operator+= (const TComplex &c)
 
TComplex operator- (const TComplex &c) const
 
TComplex operator- ()
 
TComplex operator- (Double_t c) const
 
TComplex operator-= (const TComplex &c)
 
TComplex operator/ (const TComplex &c) const
 
TComplex operator/ (Double_t c) const
 
TComplex operator/= (const TComplex &c)
 
Double_t Re () const
 
Double_t Rho () const
 
Double_t Rho2 () const
 
Double_t Theta () const
 

Static Public Member Functions

static Double_t Abs (const TComplex &c)
 
static TComplex ACos (const TComplex &c)
 
static TComplex ACosH (const TComplex &c)
 
static TComplex ASin (const TComplex &c)
 
static TComplex ASinH (const TComplex &c)
 
static TComplex ATan (const TComplex &c)
 
static TComplex ATanH (const TComplex &c)
 
static TComplex Conjugate (const TComplex &c)
 
static TComplex Cos (const TComplex &c)
 
static TComplex CosH (const TComplex &c)
 
static TComplex Exp (const TComplex &c)
 
static Int_t Finite (const TComplex &c)
 
static TComplex I ()
 
static Int_t IsNaN (const TComplex &c)
 
static TComplex Log (const TComplex &c)
 
static TComplex Log10 (const TComplex &c)
 
static TComplex Log2 (const TComplex &c)
 
static TComplex Max (const TComplex &a, const TComplex &b)
 
static TComplex Min (const TComplex &a, const TComplex &b)
 
static TComplex Normalize (const TComplex &c)
 
static TComplex One ()
 
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 TComplex Range (const TComplex &lb, const TComplex &ub, const TComplex &c)
 
static TComplex Sin (const TComplex &c)
 
static TComplex SinH (const TComplex &c)
 
static TComplex Sqrt (const TComplex &c)
 
static TComplex Tan (const TComplex &c)
 
static TComplex TanH (const TComplex &c)
 

Protected Attributes

Double_t fIm
 
Double_t fRe
 

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

Definition at line 34 of file TComplex.h.

◆ 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 36 of file TComplex.h.

Member Function Documentation

◆ Abs()

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

Definition at line 146 of file TComplex.h.

◆ ACos()

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

Definition at line 125 of file TComplex.h.

◆ ACosH()

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

Definition at line 141 of file TComplex.h.

◆ ASin()

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

Definition at line 123 of file TComplex.h.

◆ ASinH()

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

Definition at line 139 of file TComplex.h.

◆ ATan()

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

Definition at line 127 of file TComplex.h.

◆ ATanH()

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

Definition at line 143 of file TComplex.h.

◆ Conjugate()

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

Definition at line 175 of file TComplex.h.

◆ Cos()

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

Definition at line 117 of file TComplex.h.

◆ CosH()

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

Definition at line 133 of file TComplex.h.

◆ Exp()

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

Definition at line 105 of file TComplex.h.

◆ Finite()

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

Definition at line 164 of file TComplex.h.

◆ I()

static TComplex TComplex::I ( )
inlinestatic

Definition at line 39 of file TComplex.h.

◆ Im()

Double_t TComplex::Im ( ) const
inline

Definition at line 44 of file TComplex.h.

◆ IsNaN()

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

Definition at line 166 of file TComplex.h.

◆ Log()

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

Definition at line 107 of file TComplex.h.

◆ Log10()

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

Definition at line 111 of file TComplex.h.

◆ Log2()

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

Definition at line 109 of file TComplex.h.

◆ Max()

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

Definition at line 171 of file TComplex.h.

◆ Min()

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

Definition at line 169 of file TComplex.h.

◆ Normalize()

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

Definition at line 173 of file TComplex.h.

◆ One()

static TComplex TComplex::One ( )
inlinestatic

Definition at line 40 of file TComplex.h.

◆ operator Double_t()

TComplex::operator Double_t ( ) const
inline

Definition at line 97 of file TComplex.h.

◆ operator Float_t()

TComplex::operator Float_t ( ) const
inline

Definition at line 98 of file TComplex.h.

◆ operator Int_t()

TComplex::operator Int_t ( ) const
inline

Definition at line 99 of file TComplex.h.

◆ operator()()

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

Definition at line 48 of file TComplex.h.

◆ operator*() [1/2]

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

Definition at line 53 of file TComplex.h.

◆ operator*() [2/2]

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

Definition at line 77 of file TComplex.h.

◆ operator*=()

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

Definition at line 62 of file TComplex.h.

◆ operator+() [1/3]

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

Definition at line 55 of file TComplex.h.

◆ operator+() [2/3]

TComplex TComplex::operator+ ( )
inline

Definition at line 73 of file TComplex.h.

◆ operator+() [3/3]

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

Definition at line 79 of file TComplex.h.

◆ operator+=()

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

Definition at line 64 of file TComplex.h.

◆ operator-() [1/3]

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

Definition at line 59 of file TComplex.h.

◆ operator-() [2/3]

TComplex TComplex::operator- ( )
inline

Definition at line 71 of file TComplex.h.

◆ operator-() [3/3]

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

Definition at line 83 of file TComplex.h.

◆ operator-=()

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

Definition at line 68 of file TComplex.h.

◆ operator/() [1/2]

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

Definition at line 57 of file TComplex.h.

◆ operator/() [2/2]

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

Definition at line 81 of file TComplex.h.

◆ operator/=()

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

Definition at line 66 of file TComplex.h.

◆ Power() [1/4]

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

Definition at line 149 of file TComplex.h.

◆ Power() [2/4]

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

Definition at line 154 of file TComplex.h.

◆ Power() [3/4]

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

Definition at line 156 of file TComplex.h.

◆ Power() [4/4]

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

Definition at line 161 of file TComplex.h.

◆ Range()

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

Definition at line 177 of file TComplex.h.

◆ Re()

Double_t TComplex::Re ( ) const
inline

Definition at line 43 of file TComplex.h.

◆ Rho()

Double_t TComplex::Rho ( ) const
inline

Definition at line 45 of file TComplex.h.

◆ Rho2()

Double_t TComplex::Rho2 ( ) const
inline

Definition at line 46 of file TComplex.h.

◆ Sin()

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

Definition at line 114 of file TComplex.h.

◆ SinH()

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

Definition at line 130 of file TComplex.h.

◆ Sqrt()

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

Definition at line 102 of file TComplex.h.

◆ Tan()

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

Definition at line 120 of file TComplex.h.

◆ TanH()

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

Definition at line 136 of file TComplex.h.

◆ Theta()

Double_t TComplex::Theta ( ) const
inline

Definition at line 47 of file TComplex.h.

Friends And Related Function Documentation

◆ operator*

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

Definition at line 87 of file TComplex.h.

◆ operator+

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

Definition at line 89 of file TComplex.h.

◆ operator-

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

Definition at line 93 of file TComplex.h.

◆ operator/

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

Definition at line 91 of file TComplex.h.

◆ operator<<

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

Definition at line 41 of file TComplex.cxx.

◆ operator>>

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

Definition at line 49 of file TComplex.cxx.

Member Data Documentation

◆ fIm

Double_t TComplex::fIm
protected

Definition at line 30 of file TComplex.h.

◆ fRe

Double_t TComplex::fRe
protected

Definition at line 29 of file TComplex.h.


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