1.0.2 • Published 2 years ago

nth-harmonic v1.0.2

Weekly downloads
7
License
MIT
Repository
github
Last release
2 years ago

nth-harmonic

Computes nth harmonic number with digamma function.

npm.io

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

import nthHarmonic from 'nth-harmonic' // ES6 OR TYPESCRIPT

Use

nthHarmonic($n: number): number

License

MIT