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
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
| Name | Type | Description |
|---|---|---|
x | ExpressionInput | The expression whose root is requested. |
n | ExpressionInput | The root degree. |
Returns
Expression — `x^(1/n)`.
