Function Math Trig Complex Class

Log10

" Logarithm Base 10" Log base-10 of X for a real or complex number.

Signature (Visual Basic / VBA)

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

Code Examples

    Log10(-1) = "0|1.36437635384184"
    IsNull(Log10(0)) = True
    Log10(1) = 0
    Log10(2) = 0.301029995663981
    Log10(10) = 1
    Log10("2.3|-4.5") = "0.7036104464637|-0.476985365109662"
    Logarithm(X) / Log(10)

Parameters

Parameter Description
vX Number whose base-10 logarithm 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.