Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g )
|
08-28-2020, 12:25 AM
Post: #4
|
|||
|
|||
RE: Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g )
(04-27-2016 02:53 AM)Gerson W. Barbosa Wrote: 4 P2 --> 55.0973869316 Psi --> 4.00000000039 Thanks for the link to get me here. Regading the trouble with non-convergence, this algorithm may not be stable. Code: from mpmath import * >>> p2(1) (1, 1.00005982215968, 3.20333496618784) >>> p2(_) # = p3 (1, 1.00545464001878, 3.21811921983331) >>> p2(_) # = p4 (1, 1.00011835326821, 3.20349494484173) >>> p2(_) # = p5 (1, 1.00539674070051, 3.21796012995814) Iterated results are oscillatory. For this case, p2 result is the best one. Anyway, result is still bad. We might as well use Newton's method Trivia: when x is big, psi(0,x) ≈ ln(x-0.5) → psi(1,x) ≈ 1/(x-0.5) >>> x = p1(1) >>> x -= (psi(0,x)-1) / psi(1,x) >>> x -= (psi(0,x)-1) / psi(1,x) >>> x, psi(0,x) (3.20317146837693, 1.0) Just for fun, I use above "perfect guess" for p2(1) >>> p2((1, 1.0, 3.20317146837693)) (1, 1.00551381652574, 3.21828182845905) >>> p2(_) # = p3 (1, 1.00005982215968, 3.20333496618784) >>> p2(_) # = p4 (1, 1.00545464001878, 3.21811921983331) |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g ) - Gerson W. Barbosa - 04-27-2016, 02:53 AM
RE: Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g ) - John Keith - 04-27-2016, 04:57 PM
RE: Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g ) - Gerson W. Barbosa - 04-27-2016, 06:37 PM
RE: Inverse Harmonic and Inverse Digamma Functions (HP 49G (*) and HP 50g ) - Albert Chan - 08-28-2020 12:25 AM
|
User(s) browsing this thread: 1 Guest(s)