ProtoFlux:Pow: Difference between revisions

From Resonite Wiki
Created a page for the Pow node.
 
Technically "Pseudo-generic".
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Name":"N", "Type":"float"},
{"Name":"N", "Type":"Dummy"},
{"Name":"Power", "Type":"float"}
{"Name":"Power", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Name":"*", "Type":"float"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}
Line 17: Line 17:
== Inputs ==
== Inputs ==


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


The base number for this node.
The base number for this node.


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


The exponent (or power) for this node.
The exponent (or power) for this node.
Line 27: Line 27:
== Outputs ==
== Outputs ==


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


Returns the result of the base raised to the power.
Returns the result of the base raised to the power.

Revision as of 10:12, 22 May 2024

N
*
Power
Math

The Pow node takes in a base number and a power to raise the base to, then returns the result.

Inputs

N (Pseudo-generic)

The base number for this node.

Power (Pseudo-generic)

The exponent (or power) for this node.

Outputs

* (Pseudo-generic)

Returns the result of the base raised to the power.

Examples

Suppose we have the base number 3 and an exponent of 4. This is written as 3⁴.

To calculate 3⁴:

3⁴ = 3 × 3 × 3 × 3 = 81

In this example:

   The base is 3.
   The exponent is 4.
   3⁴ is read as "three to the power of four" or "three raised to the fourth power."