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.

Interface

Inputs

ParameterDetailsPossible Types
Radicand

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

Primary Input

f32
f64
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

f32
f64

Outputs

ProductDetailsPossible Types
Result

The value produced by the node operation.

Primary Output

f64
f32