ProtoFlux:Log N: Difference between revisions

From Resonite Wiki
Fixed grammer.
Arranged this page a bit better for consistency.
Line 14: Line 14:


The <code>Log N</code> node takes in the number we want to get to (labeled <code>N</code>) and the base number (The number you're multiplying).
The <code>Log N</code> node takes in the number we want to get to (labeled <code>N</code>) and the base number (The number you're multiplying).
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.
{{Note|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?|information}}
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.


== Inputs ==
== Inputs ==
Line 45: Line 32:


== Examples ==
== 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.
{{Note|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?|information}}
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 ==


<gallery widths=480px heights=480px>File:LogN Example 01.png|LogN Example</gallery>
<gallery widths=480px heights=480px>File:LogN Example 01.png|LogN Example</gallery>


[[Category:ProtoFlux:Math]]
[[Category:ProtoFlux:Math]]

Revision as of 01:47, 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 (float)

The number we are searching for using the base.

Base (float)

The number being chain multiplied.

Outputs

* (float)

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