HP Forums
Finally found a use for my WP34s that I can't replicate elsewhere - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: Not HP Calculators (/forum-7.html)
+--- Forum: Not quite HP Calculators - but related (/forum-8.html)
+--- Thread: Finally found a use for my WP34s that I can't replicate elsewhere (/thread-11440.html)



Finally found a use for my WP34s that I can't replicate elsewhere - gomefun2 - 09-22-2018 10:02 PM

I have been struggling with needing to calculate the exponential integral for my work. In order to do this, I need Euler-Mascheroni's constant in the highest precision possible. I've been trying to write code to do this in C++ and it has been challenging, then I remembered that the WP34s has 34 digit precision.

Not only that but it has the constant already built in, with 34 digits of precision!

The only question I have so far is, how do I scroll right in the double precision mode to see the rest of the digits?

Thanks


RE: Finally found a use for my WP34s that I can't replicate elsewhere - Paul Dale - 09-22-2018 11:05 PM

f-shift and g-shift x<>y show the left and right halves of the number including all digits.


Pauli


RE: Finally found a use for my WP34s that I can't replicate elsewhere - Albert Chan - 09-23-2018 01:08 AM

You can use Wolfram Alpha: http://m.wolframalpha.com/input/?i=EulerGamma


RE: Finally found a use for my WP34s that I can't replicate elsewhere - Joe Horn - 09-23-2018 01:50 AM

IIRC, Free42 also has 34 digits of precision, and pressing the SHOW button displays all the digits at once.

EDIT: And if you have an HP 50g, you can install the LongFloat library and set whatever precision you want, up to 9999 digits.


RE: Finally found a use for my WP34s that I can't replicate elsewhere - gomefun2 - 09-23-2018 04:13 AM

Out of curiosity is there a way to get 9999 digits of precision in c++ without having to code it yourself?

For now, the WP34s will work because it can do the Ei(-x) pretty fast, with accuracy up to about x=30 (more than I should really need, c++ can't even converge at x=1 using Theis (1935)).


RE: Finally found a use for my WP34s that I can't replicate elsewhere - Paul Dale - 09-23-2018 04:48 AM

Don't even consider writing it yourself, you will get it wrong.

Instead, try an existing library. GNU's GMP is well regarded but there are others. The WP 34S uses decNumber, Free42 uses Intel's decimal library which isn't arbitrary precision.


Pauli


RE: Finally found a use for my WP34s that I can't replicate elsewhere - gomefun2 - 09-25-2018 09:04 PM

To see the calculator solve Ei(-x):

https://www.youtube.com/watch?v=i_89KNzGfo4&feature=youtu.be