LibreOffice Module scaddins (master) 1
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sca::analysis::Complex Class Reference

#include <analysishelper.hxx>

Public Member Functions

 Complex (double fReal, double fImag=0.0, sal_Unicode cC='\0')
 
 Complex (const OUString &rComplexAsString)
 
OUString GetString () const
 
double Real () const
 
double Imag () const
 
double Arg () const
 
double Abs () const
 
void Power (double fPower)
 
void Sqrt ()
 
void Sin ()
 
void Cos ()
 
void Div (const Complex &rDivisor)
 
void Exp ()
 
void Conjugate ()
 
void Ln ()
 
void Log10 ()
 
void Log2 ()
 
void Mult (double fFact)
 
void Mult (const Complex &rMult)
 
void Sub (const Complex &rMult)
 
void Add (const Complex &rAdd)
 
void Tan ()
 
void Sec ()
 
void Csc ()
 
void Cot ()
 
void Sinh ()
 
void Cosh ()
 
void Sech ()
 
void Csch ()
 

Static Public Member Functions

static bool IsImagUnit (sal_Unicode c)
 
static bool ParseString (const OUString &rComplexAsString, Complex &rReturn)
 

Private Attributes

double r
 
double i
 
sal_Unicode c
 

Detailed Description

Definition at line 381 of file analysishelper.hxx.

Constructor & Destructor Documentation

◆ Complex() [1/2]

sca::analysis::Complex::Complex ( double  fReal,
double  fImag = 0.0,
sal_Unicode  cC = '\0' 
)
inline

Definition at line 635 of file analysishelper.hxx.

References i.

◆ Complex() [2/2]

sca::analysis::Complex::Complex ( const OUString &  rComplexAsString)
explicit
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1572 of file analysishelper.cxx.

References ParseString().

Member Function Documentation

◆ Abs()

double sca::analysis::Complex::Abs ( ) const
inline

Definition at line 653 of file analysishelper.hxx.

References i, and r.

Referenced by Arg(), AnalysisAddIn::getImabs(), Ln(), Power(), and Sqrt().

◆ Add()

void sca::analysis::Complex::Add ( const Complex rAdd)
inline

Definition at line 692 of file analysishelper.hxx.

References c, i, and r.

◆ Arg()

double sca::analysis::Complex::Arg ( ) const
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1682 of file analysishelper.cxx.

References Abs(), i, phi, and r.

Referenced by AnalysisAddIn::getImargument().

◆ Conjugate()

void sca::analysis::Complex::Conjugate ( )
inline

Definition at line 659 of file analysishelper.hxx.

References i.

◆ Cos()

void sca::analysis::Complex::Cos ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1751 of file analysishelper.cxx.

References i, and r.

◆ Cosh()

void sca::analysis::Complex::Cosh ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1924 of file analysishelper.cxx.

References i, and r.

◆ Cot()

void sca::analysis::Complex::Cot ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1888 of file analysishelper.cxx.

References i, and r.

◆ Csc()

void sca::analysis::Complex::Csc ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1867 of file analysishelper.cxx.

References i, and r.

◆ Csch()

void sca::analysis::Complex::Csch ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1962 of file analysishelper.cxx.

References i, and r.

◆ Div()

void sca::analysis::Complex::Div ( const Complex rDivisor)
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1769 of file analysishelper.cxx.

References c, i, r, and z.

◆ Exp()

void sca::analysis::Complex::Exp ( )

Definition at line 1788 of file analysishelper.cxx.

References i, and r.

◆ GetString()

OUString sca::analysis::Complex::GetString ( ) const
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1653 of file analysishelper.cxx.

References c, finiteOrThrow(), GetString(), i, and r.

Referenced by AnalysisAddIn::getComplex(), AnalysisAddIn::getImproduct(), AnalysisAddIn::getImsum(), and GetString().

◆ Imag()

double sca::analysis::Complex::Imag ( ) const
inline

Definition at line 647 of file analysishelper.hxx.

References i.

Referenced by AnalysisAddIn::getImaginary().

◆ IsImagUnit()

bool sca::analysis::Complex::IsImagUnit ( sal_Unicode  c)
inlinestatic

Definition at line 1579 of file analysishelper.cxx.

References c.

Referenced by ParseString().

◆ Ln()

void sca::analysis::Complex::Ln ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1796 of file analysishelper.cxx.

References Abs(), i, log, and r.

Referenced by Log10(), and Log2().

◆ Log10()

void sca::analysis::Complex::Log10 ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1813 of file analysishelper.cxx.

References Ln(), and Mult().

◆ Log2()

void sca::analysis::Complex::Log2 ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1820 of file analysishelper.cxx.

References Ln(), and Mult().

◆ Mult() [1/2]

void sca::analysis::Complex::Mult ( const Complex rMult)
inline

Definition at line 672 of file analysishelper.hxx.

References c, i, and r.

◆ Mult() [2/2]

void sca::analysis::Complex::Mult ( double  fFact)
inline

Definition at line 665 of file analysishelper.hxx.

References i, and r.

Referenced by Log10(), and Log2().

◆ ParseString()

bool sca::analysis::Complex::ParseString ( const OUString &  rComplexAsString,
Complex rReturn 
)
static

Definition at line 1584 of file analysishelper.cxx.

References c, i, IsImagUnit(), sca::analysis::ParseDouble(), and r.

Referenced by Complex().

◆ Power()

void sca::analysis::Complex::Power ( double  fPower)
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1696 of file analysishelper.cxx.

References Abs(), i, p, phi, and r.

◆ Real()

double sca::analysis::Complex::Real ( ) const
inline

Definition at line 641 of file analysishelper.hxx.

References r.

Referenced by AnalysisAddIn::getImreal().

◆ Sec()

void sca::analysis::Complex::Sec ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1846 of file analysishelper.cxx.

References i, and r.

◆ Sech()

void sca::analysis::Complex::Sech ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1941 of file analysishelper.cxx.

References i, and r.

◆ Sin()

void sca::analysis::Complex::Sin ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1733 of file analysishelper.cxx.

References i, and r.

◆ Sinh()

void sca::analysis::Complex::Sinh ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1907 of file analysishelper.cxx.

References i, and r.

◆ Sqrt()

void sca::analysis::Complex::Sqrt ( )

Definition at line 1722 of file analysishelper.cxx.

References Abs(), i, p, and r.

◆ Sub()

void sca::analysis::Complex::Sub ( const Complex rMult)
inline

Definition at line 684 of file analysishelper.hxx.

References c, i, and r.

◆ Tan()

void sca::analysis::Complex::Tan ( )
Exceptions
css::uno::RuntimeException
css::lang::IllegalArgumentException

Definition at line 1827 of file analysishelper.cxx.

References i, and r.

Member Data Documentation

◆ c

sal_Unicode sca::analysis::Complex::c
private

Definition at line 385 of file analysishelper.hxx.

Referenced by Add(), Div(), GetString(), IsImagUnit(), Mult(), ParseString(), and Sub().

◆ i

double sca::analysis::Complex::i
private

◆ r

double sca::analysis::Complex::r
private

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