Function reference · Math

nthroot

Computes the nth root as a principal fractional power.

nthroot(x,n) is represented as x^(1/n), so branch behavior follows Nerdamer's power rules. Use cbrt when the real cube root of a negative real is specifically required.

Examples

These examples use Nerdamer Notation.

Take a fourth root using the principal power.

nthroot(81,4)

Keep a symbolic root degree.

nthroot(x,n)

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

nthroot(arg1, arg2)

nerdamer.nthroot

Call the operation through the default nerdamer import.

nerdamer.nthroot(x: ExpressionInput, n: ExpressionInput): Expression

Parameters

NameTypeDescription
xExpressionInputThe expression whose root is requested.
nExpressionInputThe root degree.

Returns

Expression — `x^(1/n)`.

Browse the nerdamer API →

← Back to Reference