December 23, 2000

ArrayMax – The value and index of highest element in an array of any type

‘ Return the maximum value in an array of any type” FIRST and LAST indicate which portion of the array’ should be considered; they default to the first’ and last element, respectively’ If MAXINDEX is passed, it receives the index of the’ maximum element in the arrayFunction ArrayMax(arr As Variant,

ArrayMin – The value and index of lowest element in an array of any type

‘ Return the minimum value in an array of any type” FIRST and LAST indicate which portion of the array’ should be considered; they default to the first’ and last element, respectively’ If MININDEX is passed, it receives the index of the’ minimum element in the arrayFunction ArrayMin(arr As Variant,

CComplexNumber – A class for dealing with complex numbers

Option Explicit’——————————————‘ A class for dealing with complex numbers’——————————————‘ The main propertiesPublic Real As DoublePublic Imaginary As Double’ Initialize this complex number’ (returns Me)Function Init(Real As Double, Imaginary As Double) As CComplexNumber Me.Real = Real Me.Imaginary = Imaginary Set Init = MeEnd Function’ Returns another complex number with given’ real