Log Function
рдХрд┐рд╕реА рд╕рдВрдЦреНрдпрд╛ рдХрд╛ рдиреИрд╕рд░реНрдЧрд┐рдХ рд▓рдШреБрдЧрдгрдХ рд╡рд╛рдкрд╕ рдХрд░рддрд╛ рд╣реИ.
Syntax:
Sin (Number)
рд╡рд╛рдкрд╕реА рдореВрд▓реНрдп:
рджреЛрдЧреБрдирд╛
рдкреИрд░рд╛рдореАрдЯрд░
Number: Any numeric expression that you want to calculate the natural logarithm for.
рдиреИрд╕рд░реНрдЧрд┐рдХ рд▓рдШреБрдЧрдгрдХ рдмреЗрд╕ e рдХрд╛ рд▓рдШреБрдЧрдгрдХ рд╣реИ. рдмреЗрд╕ рдПрдХ рд╕реНрдерд┐рд░рд╛рдВрдХ рд╣реИ рдЬрд┐рд╕рдХрд╛ рд▓рдЧрднрдЧ рдорд╛рди рд╣реИ- 2.718282...
You can calculate logarithms to any base (n) for any number (x) by dividing the natural logarithm of x by the natural logarithm of n, as follows:
Log n(x) = Log(x) / Log(n)
рдЙрджрд╛рд╣рд░рдг:
Sub ExampleLogExp
Dim a As Double
Dim Const b1=12.345e12
Dim Const b2=1.345e34
a=Exp( Log(b1)+Log(b2) )
MsgBox "" & a & chr(13) & (b1*b2) ,0,"Multiplication by logarithm function"
End Sub