Skip to main content
Documentation
Node Editor

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.

NameTypeRangeDefault
ValueNumberany1

Outputs: The exponent.

NameTypeRange
NumberNumberany

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.

NameTypeRangeDefault
VectorVectorvec[1, 1, 1]

Outputs: The vector of base-2 logarithms.

NameTypeRange
VectorVectorvec

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.

NameTypeRangeDefault
ValueNumberany1
BaseNumberany10

Outputs: The logarithm.

NameTypeRange
NumberNumberany

Natural Exponent

Creates an exponential growth curve. The output grows fast as the input increases.

Inputs: Any number. Keep it small to avoid overflow.

NameTypeRangeDefault
ValueNumberany0

Outputs: The result, always positive.

NameTypeRange
NumberNumber≥0

Natural Exponent Vector

Applies exponential growth to each component.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector of exponential values, always positive.

NameTypeRange
VectorVectorvec

Natural Logarithm

Reverses Natural Exponent. It compresses large ranges into smaller ones.

Inputs: A positive number.

NameTypeRangeDefault
ValueNumberany1

Outputs: The compressed result.

NameTypeRange
NumberNumberany

Natural Logarithm Vector

Applies the natural logarithm to each component to compress large ranges.

Inputs: A 3D vector with all components positive.

NameTypeRangeDefault
VectorVectorvec[1, 1, 1]

Outputs: The vector of compressed values.

NameTypeRange
VectorVectorvec

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.

NameTypeRangeDefault
ValueNumberany0

Outputs: The result, always positive.

NameTypeRange
NumberNumber≥0

Power of 2 Vector

Raises 2 to the power of each component, so a component of 3 gives 8.

Inputs: A 3D vector.

NameTypeRangeDefault
VectorVectorvec[0, 0, 0]

Outputs: The vector of powers of 2, always positive.

NameTypeRange
VectorVectorvec