The base number.
The root to calculate.
The result of calculating the nth root.
const result = nthRoot(27, 3);
console.log(result);
// Output: 3
Calculates the nth root of a bigint.
The base bigint.
The root to calculate.
The result of calculating the nth root.
const result = nthRoot(BigInt(27), 3);
console.log(result);
// Output: 3n
Generated using TypeDoc
Calculates the nth root of a number.