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

1.0.2 • Public • Published

nth-harmonic

Computes nth harmonic number with digamma function.

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

Package Sidebar

Install

npm i nth-harmonic

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

5.32 kB

Total Files

8

Last publish

Collaborators

  • howion