Table of Contents

Logarithm

Block Group: Math Operations
Icon:Logarithm block icon

The Logarithm block calculates the logarithm of a number using a specified base.

For information on using dataflow blocks, see Dataflow.

For accepted and excluded arguments of Math Operations blocks, see Math Operations.


Input/Output Properties

The following properties of the Logarithm block can take input and give output.

input specifies the number to get the logarithm for.

base specifies the base for the logarithm. The default is 10. This property is not shown on the block itself; set it in the block property inspector (the right-hand panel of the dataflow window) or bind to it.


Output Property

The following property of the Logarithm block can give output but cannot take input.

output returns the logarithm for the specified input and base.


Special Case for the Logarithm Block

A negative input value causes a NaN error result to be returned.


Examples

The following image shows four examples of the Logarithm block.

Logarithm block examples