EULER
EULER = 2.718281828459045
Complex Number object.
NUMBER_SPLIT_REGEXP = '` ^ ( # Real part [-+]?(\d+\.?\d*|\d*\.?\d+) # Real value (integer or float) ([Ee][-+]?[0-2]?\d{1,3})? # Optional real exponent for scientific format ) ( # Imaginary part [-+]?(\d+\.?\d*|\d*\.?\d+) # Imaginary value (integer or float) ([Ee][-+]?[0-2]?\d{1,3})? # Optional imaginary exponent for scientific format )? ( # Imaginary part is optional ([-+]?) # Imaginary (implicit 1 or -1) only ([ij]?) # Imaginary i or j - depending on whether mathematical or engineering ) $`uix'
validateComplexArgument(mixed $complex) : \Complex\Complex
Validates whether the argument is a valid complex number, converting scalar or array values if possible
mixed | $complex | The value to validate |
If the argument isn't a Complex number or cannot be converted to one
reverse() : \Complex\Complex
Returns the reverse of this complex number
__call( $functionName, $arguments) : \Complex\Complex|float
Returns the result of the function call or operation
$functionName | ||
$arguments |
parseComplex(mixed $complexNumber) : array
Validates whether the argument is a valid complex number, converting scalar or array values if possible
mixed | $complexNumber | The value to parse |
If the argument isn't a Complex number or cannot be converted to one