roet
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Roet

Find a root of a number.

NPM Badge

Install

npm install roet

Strategy

Roots are solved as a special type of exponentiation.

Usage

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

API

roet(number, root?)

number

Type: number

The number to find the root of.

root

Type: number (positive)
Default: 2

The root to calculate.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i roet

    Weekly Downloads

    3

    Version

    2.0.1

    License

    MIT

    Unpacked Size

    3.04 kB

    Total Files

    5

    Last publish

    Collaborators

    • richienb