Logarithmic Nodes
Logarithms and exponentials: base-2, natural, and custom-base logarithms, e to a power, and 2 to a power.
This category contains 9 nodes.
Nodes
Base-2 Logarithm
Returns the exponent x for which 2 to the power x equals the number. Input 8 gives 3, and input 16 gives 4.
Inputs: A positive number.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 1 |
Outputs: The exponent.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Base-2 Logarithm Vector
Returns the power of 2 for each component, so a component of 8 gives 3.
Inputs: A 3D vector with all components positive.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [1, 1, 1] |
Outputs: The vector of base-2 logarithms.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Logarithm
Returns the logarithm in a base you choose. Use base 10 for orders of magnitude and base 2 for halving and doubling.
Inputs: A positive number and the base.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 1 |
| Base | Number | any | 10 |
Outputs: The logarithm.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Natural Exponent
Creates an exponential growth curve. The output grows fast as the input increases.
Inputs: Any number. Keep it small to avoid overflow.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
Outputs: The result, always positive.
| Name | Type | Range |
|---|---|---|
| Number | Number | ≥0 |
Natural Exponent Vector
Applies exponential growth to each component.
Inputs: A 3D vector.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: The vector of exponential values, always positive.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Natural Logarithm
Reverses Natural Exponent. It compresses large ranges into smaller ones.
Inputs: A positive number.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 1 |
Outputs: The compressed result.
| Name | Type | Range |
|---|---|---|
| Number | Number | any |
Natural Logarithm Vector
Applies the natural logarithm to each component to compress large ranges.
Inputs: A 3D vector with all components positive.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [1, 1, 1] |
Outputs: The vector of compressed values.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |
Power of 2
Raises 2 to a power. An input of 3 gives 8, and an input of 4 gives 16.
Inputs: Any number. Keep it small to avoid overflow.
| Name | Type | Range | Default |
|---|---|---|---|
| Value | Number | any | 0 |
Outputs: The result, always positive.
| Name | Type | Range |
|---|---|---|
| Number | Number | ≥0 |
Power of 2 Vector
Raises 2 to the power of each component, so a component of 3 gives 8.
Inputs: A 3D vector.
| Name | Type | Range | Default |
|---|---|---|---|
| Vector | Vector | vec | [0, 0, 0] |
Outputs: The vector of powers of 2, always positive.
| Name | Type | Range |
|---|---|---|
| Vector | Vector | vec |