nth-harmonic

Computes nth harmonic number from digamma function.


Keywords
math, mathematics, library, typescript, javascript
License
MIT
Install
npm install nth-harmonic@1.0.2

Documentation

nth-harmonic

Computes nth harmonic number from digamma function.

Why

Because its much faster then casual summing operation for large values of n and its 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