Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

Differences Between: [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]

(no description)

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

Defines 1 class

ComplexFunctions:: (19 methods):
  IMABS()
  IMARGUMENT()
  IMCONJUGATE()
  IMCOS()
  IMCOSH()
  IMCOT()
  IMCSC()
  IMCSCH()
  IMSIN()
  IMSINH()
  IMSEC()
  IMSECH()
  IMTAN()
  IMSQRT()
  IMLN()
  IMLOG10()
  IMLOG2()
  IMEXP()
  IMPOWER()


Class: ComplexFunctions  - X-Ref

IMABS($complexNumber)   X-Ref
IMABS.

Returns the absolute value (modulus) of a complex number in x + yi or x + yj text format.

Excel Function:
IMABS(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the absolute value

IMARGUMENT($complexNumber)   X-Ref
IMARGUMENT.

Returns the argument theta of a complex number, i.e. the angle in radians from the real
axis to the representation of the number in polar coordinates.

Excel Function:
IMARGUMENT(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the argument theta

IMCONJUGATE($complexNumber)   X-Ref
IMCONJUGATE.

Returns the complex conjugate of a complex number in x + yi or x + yj text format.

Excel Function:
IMCONJUGATE(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the conjugate

IMCOS($complexNumber)   X-Ref
IMCOS.

Returns the cosine of a complex number in x + yi or x + yj text format.

Excel Function:
IMCOS(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the cosine

IMCOSH($complexNumber)   X-Ref
IMCOSH.

Returns the hyperbolic cosine of a complex number in x + yi or x + yj text format.

Excel Function:
IMCOSH(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the hyperbolic cosine

IMCOT($complexNumber)   X-Ref
IMCOT.

Returns the cotangent of a complex number in x + yi or x + yj text format.

Excel Function:
IMCOT(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the cotangent

IMCSC($complexNumber)   X-Ref
IMCSC.

Returns the cosecant of a complex number in x + yi or x + yj text format.

Excel Function:
IMCSC(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the cosecant

IMCSCH($complexNumber)   X-Ref
IMCSCH.

Returns the hyperbolic cosecant of a complex number in x + yi or x + yj text format.

Excel Function:
IMCSCH(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the hyperbolic cosecant

IMSIN($complexNumber)   X-Ref
IMSIN.

Returns the sine of a complex number in x + yi or x + yj text format.

Excel Function:
IMSIN(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the sine

IMSINH($complexNumber)   X-Ref
IMSINH.

Returns the hyperbolic sine of a complex number in x + yi or x + yj text format.

Excel Function:
IMSINH(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the hyperbolic sine

IMSEC($complexNumber)   X-Ref
IMSEC.

Returns the secant of a complex number in x + yi or x + yj text format.

Excel Function:
IMSEC(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the secant

IMSECH($complexNumber)   X-Ref
IMSECH.

Returns the hyperbolic secant of a complex number in x + yi or x + yj text format.

Excel Function:
IMSECH(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the hyperbolic secant

IMTAN($complexNumber)   X-Ref
IMTAN.

Returns the tangent of a complex number in x + yi or x + yj text format.

Excel Function:
IMTAN(complexNumber)

return: float|string
param: string $complexNumber the complex number for which you want the tangent

IMSQRT($complexNumber)   X-Ref
IMSQRT.

Returns the square root of a complex number in x + yi or x + yj text format.

Excel Function:
IMSQRT(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the square root

IMLN($complexNumber)   X-Ref
IMLN.

Returns the natural logarithm of a complex number in x + yi or x + yj text format.

Excel Function:
IMLN(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the natural logarithm

IMLOG10($complexNumber)   X-Ref
IMLOG10.

Returns the common logarithm (base 10) of a complex number in x + yi or x + yj text format.

Excel Function:
IMLOG10(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the common logarithm

IMLOG2($complexNumber)   X-Ref
IMLOG2.

Returns the base-2 logarithm of a complex number in x + yi or x + yj text format.

Excel Function:
IMLOG2(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the base-2 logarithm

IMEXP($complexNumber)   X-Ref
IMEXP.

Returns the exponential of a complex number in x + yi or x + yj text format.

Excel Function:
IMEXP(complexNumber)

return: string
param: string $complexNumber the complex number for which you want the exponential

IMPOWER($complexNumber, $realNumber)   X-Ref
IMPOWER.

Returns a complex number in x + yi or x + yj text format raised to a power.

Excel Function:
IMPOWER(complexNumber,realNumber)

return: string
param: string $complexNumber the complex number you want to raise to a power
param: float $realNumber the power to which you want to raise the complex number