Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve harmonic #36

Open
axkr opened this issue Oct 23, 2023 · 0 comments
Open

Improve harmonic #36

axkr opened this issue Oct 23, 2023 · 0 comments

Comments

@axkr
Copy link

axkr commented Oct 23, 2023

Sorry I somehow missed #18.

Can the formula:
HarmonicNumber(n) == EulerGamma + PolyGamma(0, 1 + n)

be used in harmonic for non-integer arguments?

if ( !Number.isInteger(n) ) throw Error( 'Noninteger index for harmonic number' );

Also for 2 arguments:
HarmonicNumber(n, r) == -HurwitzZeta(r, 1 + n) + Zeta(r)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant