minofrk / nth-harmonic

Computes nth harmonic number from digamma function.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Computes nth harmonic number from digamma function.

License:MIT License


Languages

Language:JavaScript 85.0%Language:TypeScript 15.0%