ProtoFlux:Log N: Difference between revisions

From Resonite Wiki
Fixed grammer.
Technically "Pseudo-generic".
 
(One intermediate revision by the same user not shown)
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 15: Line 15:
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
== Inputs ==


In this case, 2 is the base, 3 is the exponent, and 8 is the result.
=== N (Pseudo-generic) ===


{{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:
The number we are searching for using the base.
What power do we need to raise 2 to in order to get 8?|information}}


The answer is 3, because: 2³ = 8
=== Base (Pseudo-generic) ===


We write this as: log⁡₂(8) = 3
The number being chain multiplied.


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


== Inputs ==
=== * (Pseudo-generic) ===


=== N ([[Type:float|float]]) ===
Returns the exponent result.


The number we are searching for using the base.
== Examples ==
 
For example, if you take the base 2 and multiply it three times, you get: 2 × 2 × 2 = 8


=== Base ([[Type:float|float]]) ===
In this case, 2 is the base, 3 is the exponent, and 8 is the result.


The number being chain multiplied.
{{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}}


== Outputs ==
The answer is 3, because: 2³ = 8


=== * ([[Type:float|float]]) ===
We write this as: log⁡₂(8) = 3


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


== Examples ==
== 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]]

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