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

Neg Function
Math Complex Class

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

"Negate" or "Negative"
Negate a real or complex number.

Examples:
    Neg(3.4) = -3.4
    Neg(-3.4) = 3.4
    Neg("-2|-3") = "2|3"
    Neg("-2|3") = "2|-3"
    IsNull(Neg(Null)) = True
See also:
    Absolute Function
    Conj Function
    Sign Function
vX: The number whose negative is 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.

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