npm.io
1.1.0 • Published 1 year ago

nth-harmonic

Licence
MIT
Version
1.1.0
Deps
0
Size
7 kB
Vulns
0
Weekly
0
Stars
1

nth-harmonic

Computes nth harmonic number with digamma function.

Digamma and nth-Harmonic Equation

Why

Because it's much faster then casual summing operation for large values of n and it's more precise.

Installation

From NPM

npm install nth-harmonic

Usage

import nthHarmonic from 'nth-harmonic' // ES6 OR TYPESCRIPT
nthHarmonic($n: number): number

License

MIT

Keywords