Difference between revisions of "1/x (LogiX node)"

From Neos Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by 3 users not shown)
Line 4: Line 4:
 
{{Infobox Logix Node
 
{{Infobox Logix Node
 
|Name=1/x
 
|Name=1/x
|Image=[[File:| |noframe|256px]]
+
|Image =[[File: Reciprocal_FloatNode.png | noframe | 128px | '1/x' LogiX node ]]
 
|Input0Type=Float|Input0Name=X
 
|Input0Type=Float|Input0Name=X
 
|Output0Type=Float|Output0Name=*
 
|Output0Type=Float|Output0Name=*
Line 10: Line 10:
  
 
<!--T:2-->
 
<!--T:2-->
The '''1/x''' node outputs the value of 1 divided by the input X.
+
The '''1/x''' node outputs the [https://en.wikipedia.org/wiki/Multiplicative_inverse reciprocal] of X &mdash; or 1 divided by the input X.
  
 
== Usage == <!--T:3-->
 
== Usage == <!--T:3-->
Line 20: Line 20:
 
</translate>
 
</translate>
 
[[Category:LogiX{{#translation:}}|1/x]]
 
[[Category:LogiX{{#translation:}}|1/x]]
[[Category:LogiX: Operators{{#translation:}}|1/x]]
+
[[Category:LogiX:Operators{{#translation:}}|1/x]]
{{:NodeMenu-Operators{{#translation:}}}}
+
{{:NodeMenu-Operators}}

Latest revision as of 03:12, 20 February 2022

Other languages:
English • ‎日本語
1/x
'1/x' LogiX node
Inputs
  Float X
Outputs
  Float *

The 1/x node outputs the reciprocal of X — or 1 divided by the input X.

Usage

By default this node accepts the float datatype, however it can be overloaded to accept various numeric value types if an appropriate wire is connected. If a vector datatype is connected (e.g. float3), the output will have the same number of dimensions with each element of the output being 1 divided by the corresponding element of the input. Note that for integer (int and related) datatypes this node performs integer division. This results in an invalid output which causes errors if the input is 0, output of 1 if the input is 1, and output of 0 for any other value.

Examples

Node Menu

Operators
Back Bool Vectors Nullable Parsing - ! !=
% & ?: ?? ^ | |V|
|V|² + +/- +1 < << ==
> >> × ×dT ÷ ÷dT
° · 0 1 -1 1/x
1-x A^-1 Cross Determinant Distance Filter Invalid Get Type
IsInfinity IsNaN IsNull Mask Matrix Element -n NAND
NOR Normalized NotNull Pack Columns Pack rgba Pack Rows Pack xy
Pack xyz Pack xyzw Project Reflect ROL ROR To String
Transpose Unpack Columns Unpack Rows Unpack xy Unpack xyz Unpack xyzw
XNOR