Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.

Differences Between: [Versions 400 and 401]

(no description)

File Size: 134 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ComplexOperations:: (4 methods):
  IMDIV()
  IMSUB()
  IMSUM()
  IMPRODUCT()


Class: ComplexOperations  - X-Ref

IMDIV($complexDividend, $complexDivisor)   X-Ref
IMDIV.

Returns the quotient of two complex numbers in x + yi or x + yj text format.

Excel Function:
IMDIV(complexDividend,complexDivisor)

param: array|string $complexDividend the complex numerator or dividend
param: array|string $complexDivisor the complex denominator or divisor
return: array|string

IMSUB($complexNumber1, $complexNumber2)   X-Ref
IMSUB.

Returns the difference of two complex numbers in x + yi or x + yj text format.

Excel Function:
IMSUB(complexNumber1,complexNumber2)

param: array|string $complexNumber1 the complex number from which to subtract complexNumber2
param: array|string $complexNumber2 the complex number to subtract from complexNumber1
return: array|string

IMSUM(...$complexNumbers)   X-Ref
IMSUM.

Returns the sum of two or more complex numbers in x + yi or x + yj text format.

Excel Function:
IMSUM(complexNumber[,complexNumber[,...]])

param: string ...$complexNumbers Series of complex numbers to add
return: string

IMPRODUCT(...$complexNumbers)   X-Ref
IMPRODUCT.

Returns the product of two or more complex numbers in x + yi or x + yj text format.

Excel Function:
IMPRODUCT(complexNumber[,complexNumber[,...]])

param: string ...$complexNumbers Series of complex numbers to multiply
return: string