ProtoFlux:Half Pi: Difference between revisions

From Resonite Wiki
m Edit intro
m Added flux node and rudimentary explanations.
Line 1: Line 1:
{{#Invoke:ProtoFlux|GenerateUI
{{#Invoke:ProtoFlux|GenerateUI
|Name=π/2
|Name=GreatestCommonDivisor
|Category=Constants
|Category=Math
|Inputs=
[
{"Name":"A", "Type":"Dummy"},
{"Name":"B", "Type":"Dummy"}
]
|Outputs=
|Outputs=
[
[
{"Name":"", "Type":"float"}
{"Name":"*", "Type":"Dummy"}
]
]
|}}
|}}


The '''HalfPi''' or '''π/2'''node outputs the mathematical constant [https://en.wikipedia.org/wiki/Pi π] divided by 2.
The <code>Greatest Common Divisor</code> node finds the biggest number  between input A and B which can be divided by without a decimal.
 
The node can be [[Type:Int|int]], [[Type:long|long]], [[Type:Uint|uint]], or [[Type:ulong|ulong]] type data.
 
== Inputs ==
 
=== A (Pseudo-generic) ===
 
The first value to compare.
 
=== B (Pseudo-generic) ===
 
The second value to compare.


== Outputs ==
== Outputs ==


=== * ([[Type:Float|float]]) ===
=== * (Pseudo-generic) ===
The value of π ÷ 2, approximately <code>1.570796</code>.
 
Returns the result.


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

Revision as of 18:53, 27 May 2024

GreatestCommonDivisor
A
*
B
Math

The Greatest Common Divisor node finds the biggest number between input A and B which can be divided by without a decimal.

The node can be int, long, uint, or ulong type data.

Inputs

A (Pseudo-generic)

The first value to compare.

B (Pseudo-generic)

The second value to compare.

Outputs

* (Pseudo-generic)

Returns the result.