Logarithm
Computes the base-“Base” logarithm of the input “Value”. The result is the same type as the input “Value” if it is a decimal type, otherwise the result is a double. If the input is an array, vector, or matrix, then the node will calculate the logarithm of each element and output an array, vector, or matrix of the same size. The logarithm’s “Base” must be greater than zero and not equal to one while “Value” must be greater than zero, otherwise the compute will fail.
Installation
To use this node enable omni.graph.nodes in the Extension Manager.
Inputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Base (inputs:base) |
|
The logarithm base. Must be greater than zero and not equal to one or the compute will fail. |
10 |
Value (inputs:value) |
|
The input value. Must be greater than zero or the compute will fail. |
None |
Outputs
Name |
Type |
Descripton |
Default |
---|---|---|---|
Result (outputs:result) |
|
The logarithm value. The shape and type of this output should match “Value“‘s unless the input “Value” is not a decimal type, in which case the result should be of type double. |
None |
Metadata
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.Logarithm |
Version |
1 |
Extension |
omni.graph.nodes |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Logarithm |
Categories |
math:operator |
Generated Class Name |
OgnLogarithmDatabase |
Python Module |
omni.graph.nodes |