Logarithm Base X Function

Owning Palette: Exponential Functions

Requires: Base Development System

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.

Example

 Add to the block diagram  Find on the palette
y can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
x can be a scalar number, array or cluster of numbers, array of clusters of numbers, and so on.
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.

Example

Refer to the Exponential VI in the labview\examples\Mathematics\Elementary & Special Functions\Exponential Functions directory for an example of using the Logarithm Base X function.

 Open example  Find related examples