Nth Root#
Computes the nth root of value. The result is the same type as the input value if the numerator is a decimal type. Otherwise the result is a double. If the input is a vector or matrix, then the node will calculate the square root of each element, and output a vector or matrix of the same size. Note that there are combinations of inputs that can result in a loss of precision due to different value ranges. Taking roots of a negative number will give a result of NaN if “Nth Root” is even. Setting “Nth Root” to zero will give a result of inf.
Installation#
To use this node enable omni.graph.nodes_core in the Extension Manager.
Inputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Nth Root (inputs:nthRoot) |
|
The degree of the root for the mathematical operation. Equivalent to raising “Value” to the 1/”Nth Root” power. Note that the result will be NaN if “Nth Root” is even and “Value” is negative. Also note that the result will be inf if “Nth Root” is set to zero. |
2 |
Value (inputs:value) |
|
The input value with which the nth root will be computed. |
None |
Outputs#
Name |
Type |
Descripton |
Default |
---|---|---|---|
Result (outputs:result) |
|
Result of taking the nth root of the input “Value”. |
None |
Metadata#
Name |
Value |
---|---|
Unique ID |
omni.graph.nodes.NthRoot |
Version |
1 |
Extension |
omni.graph.nodes_core |
Has State? |
False |
Implementation Language |
C++ |
Default Memory Type |
cpu |
Generated Code Exclusions |
None |
uiName |
Nth Root |
Categories |
math:operator |
Generated Class Name |
OgnNthRootDatabase |
Python Module |
omni.graph.nodes_core |