Function Math Complex Class

Min2Complex

" Minimum Of Two Numbers" Minimum of two Real and/or Complex numbers. Returns argument on left (vX) if arguments are equal real numbers.

Signature (Visual Basic / VBA)

Public Function Min2Complex( _
      ByVal vX As Variant _
    , ByVal vY As Variant _
    ) As Variant

Code Example

    Min2Complex(2, 3) = 2
    Min2Complex(2, "3.4|4.5") = "0.343625666410365|2.25"
    Min2Complex("4.6|3.2", "3.4|4.5") = "3.11540969935229|3.85"

Parameters

Parameter Description
vX First of two numeric arguments, the minimum of which will be returned. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.
vY Second of two numeric arguments, the minimum of which will be returned. Function returns Null if vY is Null or cannot be fixed up to a real or complex number.

Notes & Version History

Note This function supports three-valued logic, but it does not support string arguments.