nthRoot

nthRoot(a)

nthRoot(a, root)

Try it yourself:

See also:

Calculate a principal nth root

nthRoot(x, n) returns an nth root of x. It generalizes sqrt, which is the second root, and cbrt, the cube root.

Example

nthRoot(81, 4) is 3. It is useful for reversing powers, scaling laws, and geometric formulas. Use pow to verify that raising the result to n returns the input where the branch convention allows it.

Domain cautions

For real arithmetic, even roots of negative values are not real, while odd roots can be. Complex inputs have branch choices, so the returned result is a principal root rather than every possible answer. Use nthRoots when all complex roots are required. The degree should be a meaningful nonzero integer.

Try Nth Root in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions