# Logarithm Base X (G Dataflow)

Computes the base X logarithm of a specified input value.

If y is 0, the output is - $\infty$. 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 not a number (NaN).

## y

An input to this operation.

This input supports scalar numbers, arrays or clusters of numbers, and arrays of clusters of numbers.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

## x

An input to this operation.

This input supports scalar numbers, arrays or clusters of numbers, and arrays of clusters of numbers.

Data Type Changes on FPGA

When you add this node to a document targeted to an FPGA, this input has a default data type that uses fewer hardware resources at compile time.

## logx(y)

Logarithm of y to the base x.

When x and y are complex, the following equation defines logx(y):
$\mathrm{log}x\left(y\right)=\frac{\mathrm{ln}\left(y\right)}{\mathrm{ln}\left(x\right)}$

Where This Node Can Run:

Desktop OS: Windows

FPGA: All devices (only within an optimized FPGA VI)

Web Server: Not supported in VIs that run in a web application