Computes the base x logarithm of y.

(x>0, y>0). If y is 0, the output is –∞. When x and y are both non-complex and x is less than or equal to 0, or y is less than 0, the output is NaN. The connector pane displays the default data types for this polymorphic function.


icon

Inputs/Outputs

  • cdbl.png y

    y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • cdbl.png x

    x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.

  • idbl.png logx(y)

    logx(y) is the logarithm of y to the base x. When x and y are complex, the following equation defines logx(y):

    logx(y) = ln(y)/ln(x)

    Refer to the Natural Logarithm function for more information.

  • Examples

    Refer to the following example files included with LabVIEW.

    • labview\examples\Mathematics\Elementary & Special Functions\Exponential Functions\Exponential.vi