No BSD License  

Highlights from
harmonic.m

3.0

3.0 | 1 rating Rate this file 9 Downloads (last 30 days) File Size: 447 Bytes File ID: #5858

harmonic.m

by

 

10 Sep 2004 (Updated )

Harmonic(n) is an estimate of the nth harmonic number.

| Watch this File

File Information
Description

harmonic(n) is an estimate of the nth harmonic number. Also works for arbitrary nonzero complex arguments z, though it may not be accurate if |z|
is too small (|z| should be greater than 1).

Required Products Communications Blockset
MATLAB release MATLAB 6.0 (R12)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (2)
25 Apr 2012 Jonathan

Thanks for posting.

The Euler-Mascheroni constant in the file is wrong. Should be 0.5772156649, not 0.5772196649.
http://mathworld.wolfram.com/Euler-MascheroniConstant.html

Can also compute harmonic(z) using:
0.5772156649015328606 + psi(z+1)

02 Nov 2004 ANTONIO TELES

Only information!
Thanks!
Teles

Contact us