ProtoFlux:Half Pi: Difference between revisions

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


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 '''HalfPi''' or '''π/2'''node outputs the mathematical constant [https://en.wikipedia.org/wiki/Pi π] divided by 2.
 
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 ==


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


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

Latest revision as of 19:00, 27 May 2024

π/2
Constants

The HalfPi or π/2node outputs the mathematical constant π divided by 2.

Outputs

* (float)

The value of π ÷ 2, approximately 1.570796.