ProtoFlux:Log N: Difference between revisions

From Resonite Wiki
Arranged this page a bit better for consistency.
Technically "Pseudo-generic".
 
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"N", "Type":"float"},
{"Name":"N", "Type":"Dummy"},
{"Name":"Base", "Type":"float"}
{"Name":"Base", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Name":"*", "Type":"float"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}
Line 17: Line 17:
== Inputs ==
== Inputs ==


=== N ([[Type:float|float]]) ===  
=== N (Pseudo-generic) ===  


The number we are searching for using the base.
The number we are searching for using the base.


=== Base ([[Type:float|float]]) ===
=== Base (Pseudo-generic) ===


The number being chain multiplied.
The number being chain multiplied.
Line 27: Line 27:
== Outputs ==
== Outputs ==


=== * ([[Type:float|float]]) ===
=== * (Pseudo-generic) ===


Returns the exponent result.
Returns the exponent result.

Latest revision as of 10:07, 22 May 2024

Logₙ
N
*
Base
Math

The Log N node takes in the number we want to get to (labeled N) and the base number (The number you're multiplying).

Inputs

N (Pseudo-generic)

The number we are searching for using the base.

Base (Pseudo-generic)

The number being chain multiplied.

Outputs

* (Pseudo-generic)

Returns the exponent result.

Examples

For example, if you take the base 2 and multiply it three times, you get: 2 × 2 × 2 = 8

In this case, 2 is the base, 3 is the exponent, and 8 is the result.

A logarithm essentially asks: "How many times do I need to multiply the base to get the result?" For the example above, if we want to find the logarithm of 8 with base 2, we ask:

What power do we need to raise 2 to in order to get 8?

The answer is 3, because: 2³ = 8

We write this as: log⁡₂(8) = 3

So, the logarithm (log) of 8 with base 2 is 3.

Example Flux