Difference between revisions of "1/x (LogiX node)"
Jump to navigation
Jump to search
m |
DoubleStyx (talk | contribs) m |
||
Line 10: | Line 10: | ||
<!--T:2--> | <!--T:2--> | ||
− | The '''1/x''' node outputs the reciprocal of X — or 1 divided by the input X. | + | The '''1/x''' node outputs the [https://en.wikipedia.org/wiki/Multiplicative_inverse reciprocal] of X — or 1 divided by the input X. |
== Usage == <!--T:3--> | == Usage == <!--T:3--> |
Revision as of 23:29, 24 February 2021
1/x | ||
---|---|---|
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.