Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TComplex Class Reference

Definition at line 27 of file TComplex.h.

Public Member Functions

 TComplex ()
 
 TComplex (Double_t re, Double_t im=0, Bool_t polar=kFALSE)
 Standard constructor.
 
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+ ()
 
TComplex operator+ (const TComplex &c) const
 
TComplex operator+ (Double_t c) const
 
TComplex operator+= (const TComplex &c)
 
TComplex operator- ()
 
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/ (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 (const TComplex &x, Int_t y)
 
static TComplex Power (Double_t x, const TComplex &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 35 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 37 of file TComplex.h.

Member Function Documentation

◆ Abs()

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

Definition at line 147 of file TComplex.h.

◆ ACos()

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

Definition at line 126 of file TComplex.h.

◆ ACosH()

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

Definition at line 142 of file TComplex.h.

◆ ASin()

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

Definition at line 124 of file TComplex.h.

◆ ASinH()

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

Definition at line 140 of file TComplex.h.

◆ ATan()

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

Definition at line 128 of file TComplex.h.

◆ ATanH()

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

Definition at line 144 of file TComplex.h.

◆ Conjugate()

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

Definition at line 176 of file TComplex.h.

◆ Cos()

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

Definition at line 118 of file TComplex.h.

◆ CosH()

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

Definition at line 134 of file TComplex.h.

◆ Exp()

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

Definition at line 106 of file TComplex.h.

◆ Finite()

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

Definition at line 165 of file TComplex.h.

◆ I()

static TComplex TComplex::I ( )
inlinestatic

Definition at line 40 of file TComplex.h.

◆ Im()

Double_t TComplex::Im ( ) const
inline

Definition at line 45 of file TComplex.h.

◆ IsNaN()

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

Definition at line 167 of file TComplex.h.

◆ Log()

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

Definition at line 108 of file TComplex.h.

◆ Log10()

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

Definition at line 112 of file TComplex.h.

◆ Log2()

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

Definition at line 110 of file TComplex.h.

◆ Max()

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

Definition at line 172 of file TComplex.h.

◆ Min()

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

Definition at line 170 of file TComplex.h.

◆ Normalize()

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

Definition at line 174 of file TComplex.h.

◆ One()

static TComplex TComplex::One ( )
inlinestatic

Definition at line 41 of file TComplex.h.

◆ operator Double_t()

TComplex::operator Double_t ( ) const
inline

Definition at line 98 of file TComplex.h.

◆ operator Float_t()

TComplex::operator Float_t ( ) const
inline

Definition at line 99 of file TComplex.h.

◆ operator Int_t()

TComplex::operator Int_t ( ) const
inline

Definition at line 100 of file TComplex.h.

◆ operator()()

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

Definition at line 49 of file TComplex.h.

◆ operator*() [1/2]

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

Definition at line 54 of file TComplex.h.

◆ operator*() [2/2]

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

Definition at line 78 of file TComplex.h.

◆ operator*=()

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

Definition at line 63 of file TComplex.h.

◆ operator+() [1/3]

TComplex TComplex::operator+ ( )
inline

Definition at line 74 of file TComplex.h.

◆ operator+() [2/3]

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

Definition at line 56 of file TComplex.h.

◆ operator+() [3/3]

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

Definition at line 72 of file TComplex.h.

◆ operator-() [2/3]

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

Definition at line 60 of file TComplex.h.

◆ operator-() [3/3]

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.

◆ operator/() [1/2]

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

Definition at line 58 of file TComplex.h.

◆ operator/() [2/2]

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.

◆ Power() [1/4]

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

Definition at line 150 of file TComplex.h.

◆ Power() [2/4]

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

Definition at line 155 of file TComplex.h.

◆ Power() [3/4]

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

Definition at line 162 of file TComplex.h.

◆ Power() [4/4]

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

Definition at line 157 of file TComplex.h.

◆ Range()

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

Definition at line 178 of file TComplex.h.

◆ Re()

Double_t TComplex::Re ( ) const
inline

Definition at line 44 of file TComplex.h.

◆ Rho()

Double_t TComplex::Rho ( ) const
inline

Definition at line 46 of file TComplex.h.

◆ Rho2()

Double_t TComplex::Rho2 ( ) const
inline

Definition at line 47 of file TComplex.h.

◆ Sin()

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

Definition at line 115 of file TComplex.h.

◆ SinH()

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

Definition at line 131 of file TComplex.h.

◆ Sqrt()

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

Definition at line 103 of file TComplex.h.

◆ Tan()

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

Definition at line 121 of file TComplex.h.

◆ TanH()

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

Definition at line 137 of file TComplex.h.

◆ Theta()

Double_t TComplex::Theta ( ) const
inline

Definition at line 48 of file TComplex.h.

Friends And Related Symbol Documentation

◆ operator*

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

Definition at line 88 of file TComplex.h.

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

◆ operator/

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

Definition at line 92 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 31 of file TComplex.h.

◆ fRe

Double_t TComplex::fRe
protected

Definition at line 30 of file TComplex.h.

Libraries for TComplex:

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