Root

The nth root operation (√) calculates the inverse of exponentiation. Square root inverts squaring, cube root inverts cubing, and so on.

This is equivalent to raising the number to the power of 1/n. With vec2 inputs, this applies separately to the X and Y components.

Interface

Inputs

ParameterDetailsPossible Types
Radicand

The number inside the radical for which the nth root is calculated.

Primary Input

Number[]
Number
Vec2[]
Vec2
Degree

The degree of the root to be calculated. Square root is 2, cube root is 3, and so on.

Degrees 0 or less are invalid and will produce an output of 0.

Default: 2

Number[]
Number
Vec2[]
Vec2

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

Number
Number[]
Vec2
Vec2[]