BOSS 7.0.7
BESIII Offline Software System
Loading...
Searching...
No Matches
DifComplex Class Reference

#include <DifComplex.h>

Public Member Functions

 DifComplex ()
 
 DifComplex (const DifNumber &r)
 
 DifComplex (double r)
 
 DifComplex (const DifNumber &r, const DifNumber &i)
 
 DifComplex (double r, double i)
 
 DifComplex (const DifComplex &c)
 
const DifNumberreal () const
 
DifNumbergimeReal ()
 
const DifNumberimag () const
 
DifNumbergimeImag ()
 
void setReal (const DifNumber &r)
 
void setImag (const DifNumber &i)
 
DifComplexoperator+= (const DifComplex &a)
 
DifComplexoperator-= (const DifComplex &a)
 
DifComplexoperator*= (const DifComplex &a)
 
DifComplexoperator/= (const DifComplex &a)
 
DifComplexoperator/= (const DifNumber &a)
 
DifComplexoperator= (const DifComplex &a)
 
DifComplex operator- () const
 
DifComplexconjugate ()
 
DifComplexinverse ()
 
DifComplexflipsign ()
 
DifComplextakeLog ()
 
DifComplexpower (const DifNumber &p)
 
DifComplexpower (const DifComplex &p)
 
DifNumber mag () const
 
DifNumber magsq () const
 
DifNumber arg () const
 
DifNumber phase () const
 
void print () const
 
virtual ~DifComplex ()
 

Friends

DifComplex operator+ (const DifComplex &a, const DifComplex &b)
 
DifComplex operator- (const DifComplex &a, const DifComplex &b)
 
DifComplex operator* (const DifComplex &a, const DifComplex &b)
 
DifComplex operator/ (const DifComplex &a, const DifComplex &b)
 
bool operator== (const DifComplex &a, const DifComplex &b)
 
bool operator!= (const DifComplex &a, const DifComplex &b)
 
DifComplex sin (const DifComplex &a)
 
DifComplex cos (const DifComplex &a)
 
DifComplex tan (const DifComplex &a)
 
DifComplex sec (const DifComplex &a)
 
DifComplex asin (const DifComplex &a)
 
DifComplex acos (const DifComplex &a)
 
DifComplex atan (const DifComplex &a)
 
DifComplex atan2 (const DifComplex &a, const DifComplex &b)
 
DifComplex exp (const DifComplex &a)
 
DifComplex cosh (const DifComplex &a)
 
DifComplex sinh (const DifComplex &a)
 
DifComplex tanh (const DifComplex &a)
 
DifComplex sqrt (const DifComplex &a)
 
DifComplex log (const DifComplex &a)
 
DifComplex pow (const DifComplex &a, const DifComplex &p)
 
DifComplex pow (const DifComplex &a, const DifNumber &p)
 
DifComplex cc (const DifComplex &a)
 
DifComplex fromPolar (const DifNumber &mag, const DifNumber &phase)
 

Detailed Description

Definition at line 32 of file DifComplex.h.

Constructor & Destructor Documentation

◆ DifComplex() [1/6]

DifComplex::DifComplex ( )
inline

◆ DifComplex() [2/6]

DifComplex::DifComplex ( const DifNumber r)
inline

◆ DifComplex() [3/6]

DifComplex::DifComplex ( double  r)
inline

◆ DifComplex() [4/6]

DifComplex::DifComplex ( const DifNumber r,
const DifNumber i 
)
inline

◆ DifComplex() [5/6]

DifComplex::DifComplex ( double  r,
double  i 
)
inline

◆ DifComplex() [6/6]

DifComplex::DifComplex ( const DifComplex c)
inline

◆ ~DifComplex()

virtual DifComplex::~DifComplex ( )
inlinevirtual

Definition at line 110 of file DifComplex.h.

110{};

Member Function Documentation

◆ arg()

DifNumber DifComplex::arg ( ) const
inline

Referenced by phase().

◆ conjugate()

DifComplex & DifComplex::conjugate ( )
inline

◆ flipsign()

DifComplex & DifComplex::flipsign ( )
inline

◆ gimeImag()

DifNumber & DifComplex::gimeImag ( )
inline

Definition at line 48 of file DifComplex.h.

48{return _i;}

◆ gimeReal()

DifNumber & DifComplex::gimeReal ( )
inline

Definition at line 46 of file DifComplex.h.

46{return _r;}

◆ imag()

const DifNumber & DifComplex::imag ( ) const
inline

Definition at line 47 of file DifComplex.h.

47{return _i;}

◆ inverse()

DifComplex & DifComplex::inverse ( )
inline

◆ mag()

DifNumber DifComplex::mag ( ) const
inline

◆ magsq()

DifNumber DifComplex::magsq ( ) const
inline

◆ operator*=()

DifComplex & DifComplex::operator*= ( const DifComplex a)
inline

◆ operator+=()

DifComplex & DifComplex::operator+= ( const DifComplex a)
inline

◆ operator-()

DifComplex DifComplex::operator- ( ) const
inline

◆ operator-=()

DifComplex & DifComplex::operator-= ( const DifComplex a)
inline

◆ operator/=() [1/2]

DifComplex & DifComplex::operator/= ( const DifComplex a)
inline

◆ operator/=() [2/2]

DifComplex & DifComplex::operator/= ( const DifNumber a)
inline

◆ operator=()

DifComplex & DifComplex::operator= ( const DifComplex a)
inline

◆ phase()

DifNumber DifComplex::phase ( ) const
inline

Definition at line 75 of file DifComplex.h.

75{return arg();} // a rose by ...
DifNumber arg() const

◆ power() [1/2]

DifComplex & DifComplex::power ( const DifComplex p)
inline

◆ power() [2/2]

DifComplex & DifComplex::power ( const DifNumber p)
inline

◆ print()

void DifComplex::print ( ) const
inline

◆ real()

const DifNumber & DifComplex::real ( ) const
inline

Definition at line 45 of file DifComplex.h.

45{return _r;}

◆ setImag()

void DifComplex::setImag ( const DifNumber i)
inline

Definition at line 52 of file DifComplex.h.

52{_i=i;}

◆ setReal()

void DifComplex::setReal ( const DifNumber r)
inline

Definition at line 51 of file DifComplex.h.

51{_r=r;}

◆ takeLog()

DifComplex & DifComplex::takeLog ( )
inline

Friends And Related Function Documentation

◆ acos

DifComplex acos ( const DifComplex a)
friend

◆ asin

DifComplex asin ( const DifComplex a)
friend

◆ atan

DifComplex atan ( const DifComplex a)
friend

◆ atan2

DifComplex atan2 ( const DifComplex a,
const DifComplex b 
)
friend

◆ cc

DifComplex cc ( const DifComplex a)
friend

◆ cos

DifComplex cos ( const DifComplex a)
friend

◆ cosh

DifComplex cosh ( const DifComplex a)
friend

◆ exp

DifComplex exp ( const DifComplex a)
friend

◆ fromPolar

DifComplex fromPolar ( const DifNumber mag,
const DifNumber phase 
)
friend

◆ log

DifComplex log ( const DifComplex a)
friend

◆ operator!=

bool operator!= ( const DifComplex a,
const DifComplex b 
)
friend

◆ operator*

DifComplex operator* ( const DifComplex a,
const DifComplex b 
)
friend

◆ operator+

DifComplex operator+ ( const DifComplex a,
const DifComplex b 
)
friend

◆ operator-

DifComplex operator- ( const DifComplex a,
const DifComplex b 
)
friend

◆ operator/

DifComplex operator/ ( const DifComplex a,
const DifComplex b 
)
friend

◆ operator==

bool operator== ( const DifComplex a,
const DifComplex b 
)
friend

◆ pow [1/2]

DifComplex pow ( const DifComplex a,
const DifComplex p 
)
friend

◆ pow [2/2]

DifComplex pow ( const DifComplex a,
const DifNumber p 
)
friend

◆ sec

DifComplex sec ( const DifComplex a)
friend

◆ sin

DifComplex sin ( const DifComplex a)
friend

◆ sinh

DifComplex sinh ( const DifComplex a)
friend

◆ sqrt

DifComplex sqrt ( const DifComplex a)
friend

◆ tan

DifComplex tan ( const DifComplex a)
friend

◆ tanh

DifComplex tanh ( const DifComplex a)
friend

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