|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for Complex\Complex:Public Member Functions | |
| __construct ($realPart=0.0, $imaginaryPart=null, $suffix='i') | |
| getReal () | |
| Gets the real part of this complex number. More... | |
| getImaginary () | |
| Gets the imaginary part of this complex number. More... | |
| getSuffix () | |
| Gets the suffix of this complex number. More... | |
| isReal () | |
| Returns true if this is a real value, false if a complex value. More... | |
| isComplex () | |
| Returns true if this is a complex value, false if a real value. More... | |
| format () | |
| __toString () | |
| reverse () | |
| Returns the reverse of this complex number. More... | |
| invertImaginary () | |
| invertReal () | |
| __call ($functionName, $arguments) | |
| Returns the result of the function call or operation. More... | |
Static Public Member Functions | |
| static | validateComplexArgument ($complex) |
| Validates whether the argument is a valid complex number, converting scalar or array values if possible. More... | |
Data Fields | |
| const | EULER = 2.7182818284590452353602874713526624977572 |
| @constant Euler's Number. More... | |
| const | NUMBER_SPLIT_REGEXP |
| @constant Regexp to split an input string into real and imaginary components and suffix More... | |
Protected Attributes | |
| $realPart = 0.0 | |
| $imaginaryPart = 0.0 | |
| $suffix | |
Static Protected Attributes | |
| static | $functions |
| static | $operations |
Static Private Member Functions | |
| static | parseComplex ($complexNumber) |
| Validates whether the argument is a valid complex number, converting scalar or array values if possible. More... | |
Definition at line 60 of file Complex.php.
| Complex\Complex::__construct | ( | $realPart = 0.0, |
|
$imaginaryPart = null, |
|||
$suffix = 'i' |
|||
| ) |
Definition at line 168 of file Complex.php.
| Complex\Complex::__call | ( | $functionName, | |
| $arguments | |||
| ) |
Returns the result of the function call or operation.
| Exception| |
InvalidArgumentException
Definition at line 374 of file Complex.php.
| Complex\Complex::__toString | ( | ) |
Definition at line 265 of file Complex.php.
| Complex\Complex::format | ( | ) |
Definition at line 242 of file Complex.php.
| Complex\Complex::getImaginary | ( | ) |
Gets the imaginary part of this complex number.
Definition at line 207 of file Complex.php.
| Complex\Complex::getReal | ( | ) |
| Complex\Complex::getSuffix | ( | ) |
| Complex\Complex::invertImaginary | ( | ) |
Definition at line 302 of file Complex.php.
| Complex\Complex::invertReal | ( | ) |
Definition at line 311 of file Complex.php.
| Complex\Complex::isComplex | ( | ) |
Returns true if this is a complex value, false if a real value.
Definition at line 237 of file Complex.php.
| Complex\Complex::isReal | ( | ) |
Returns true if this is a real value, false if a complex value.
Definition at line 227 of file Complex.php.
|
staticprivate |
Validates whether the argument is a valid complex number, converting scalar or array values if possible.
| mixed | $complexNumber | The value to parse |
Definition at line 109 of file Complex.php.
| Complex\Complex::reverse | ( | ) |
Returns the reverse of this complex number.
Definition at line 293 of file Complex.php.
|
static |
Validates whether the argument is a valid complex number, converting scalar or array values if possible.
| mixed | $complex | The value to validate |
Definition at line 277 of file Complex.php.
|
staticprotected |
Definition at line 320 of file Complex.php.
|
protected |
Definition at line 94 of file Complex.php.
|
staticprotected |
Definition at line 360 of file Complex.php.
|
protected |
Definition at line 89 of file Complex.php.
|
protected |
Definition at line 99 of file Complex.php.
| const Complex\Complex::EULER = 2.7182818284590452353602874713526624977572 |
@constant Euler's Number.
Definition at line 65 of file Complex.php.
| const Complex\Complex::NUMBER_SPLIT_REGEXP |
@constant Regexp to split an input string into real and imaginary components and suffix
Definition at line 70 of file Complex.php.