<-- Previous || Up || Next -->

Absolute Function
Math Complex Class

Public Function Absolute( _
    ByVal vX As Variant _
    ) As Variant

"Absolute Value"
Absolute value of a real number.
Returns the norm of a complex number.
Function always returns either Null or a real number.

    Absolute(-2.3) = 2.3
    Absolute(0) = 0
    Absolute(2.3) = 2.3
    Absolute(2.3) = 2.3
    Absolute("1|1") = 1.4142135623731
    Absolute("4|5") = 6.40312423743285
    Absolute("-4|-3") = 5
See also:
    Arg Function
    Neg Function
    Sign Function
    Abs Function (Visual Basic)
vX: Either a real number whose absolute value is to be returned, or a complex number whose norm is to be returned. Function returns Null if vX is Null or cannot be fixed up to a real/complex number (as defined by the ComplexStringToReals function).
Note: This function calculates the hypotenuse of a right triangle with sides X and Y when given a complex number of the form "X|Y"

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.