ProtoFlux:Sub: Difference between revisions

From Resonite Wiki
Stub
 
Filled in this node page.
Line 4: Line 4:
|Inputs=
|Inputs=
[
[
{"Type":"Dummy"},
{"Name":"A", "Type":"Dummy"},
{"Type":"Dummy"}
{"Name":"B", "Type":"Dummy"}
]
]
|Outputs=
|Outputs=
[
[
{"Type":"Dummy"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}
The '''Sub''' node takes in 2 inputs and returns the calculated result. The second input (<code>B</code>) will take away anything from the first input (<code>A</code>).
{{Note|Keep in mind that the subtraction operation is antisymmetric (where you put your inputs matter), and is [https://en.wikipedia.org/wiki/Anticommutative_property Anticommutative] (which basically means if you swap the inputs but made the result have the opposite sign, you can get the same answer).|warning}}
== Inputs ==
=== A (Pseudo-Generic) ===
The value we have.
=== B (Pseudo-Generic) ===
The value we want to take away.
== Outputs ==
=== * (Pseudo-Generic) ===
The new result from this operation.
== See Also ==
* Wikipedia's definition of [https://en.wikipedia.org/wiki/Subtraction subtraction].
* Microsoft's documentation on the [https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/operators/arithmetic-operators subtraction] operator.


[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Stubs]]
[[Category:ProtoFlux:Operators]]
[[Category:ProtoFlux:Operators]]

Revision as of 06:15, 27 June 2024

-
A
*
B
Operators

The Sub node takes in 2 inputs and returns the calculated result. The second input (B) will take away anything from the first input (A).

Keep in mind that the subtraction operation is antisymmetric (where you put your inputs matter), and is Anticommutative (which basically means if you swap the inputs but made the result have the opposite sign, you can get the same answer).

Inputs

A (Pseudo-Generic)

The value we have.

B (Pseudo-Generic)

The value we want to take away.

Outputs

* (Pseudo-Generic)

The new result from this operation.

See Also