Find a root of a number.
npm install roet
Roots are solved as a special type of exponentiation.
import roet from 'roet';
roet(16); // Square root of 16
//=> 4
roet(16, 4); // Fourth root of 16
//=> 2
roet(-16, 4); // Negative number
//=> -2
Type: number
The number to find the root of.
Type: number
(positive)
Default: 2
The root to calculate.