Polygamma strangeness
|
03-28-2017, 10:18 PM
Post: #1
|
|||
|
|||
Polygamma strangeness
I am a Prime noob (just got it yesterday!) and I noticed while messing with it some strange behavior of the Psi (polygamma) function.
Firstly, on the HP 50, PSI(1,0) in the same as Psi(1). (Note that on the '50 PSI is the polygamma function whereas Psi is the digamma function.) On the Prime, there is the function Psi which when given two arguments calculates the polygamma function. However, Psi(1,0) returns negative infinity, not the correct answer which is negative gamma, approximately -.57721566. The digamma function can be calculated correctly on the Prime using Psi with a single argument but that is not documented in the manual or in Help. I do not know if the behavior of Psi(x,0) is a bug or whether it is intended to calculate something other than the digamma function, but the documentation is definitely incomplete. On a (possibly) related note, If I use the Sigma function to calculate a harmonic number, e.g. Code:
I get the following large ratio: Code:
which is correct, but if I calculate the same sum on the HP 50 (in exact mode) I get instead Code:
which is also correct but obviously different. I expected that the two calculators would return the same results since the CAS is essentially similar on both machines but this is just my assumption, not based on actual knowledge. John |
|||
03-29-2017, 06:04 AM
Post: #2
|
|||
|
|||
RE: Polygamma strangeness
There is indeed a bug for Psi(x,0), I'm fixing it in giac source. Thanks for reporting.
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)