Post Reply 
Finally found a use for my WP34s that I can't replicate elsewhere
09-22-2018, 10:02 PM
Post: #1
Finally found a use for my WP34s that I can't replicate elsewhere
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
Find all posts by this user
Quote this message in a reply
09-22-2018, 11:05 PM
Post: #2
RE: Finally found a use for my WP34s that I can't replicate elsewhere
f-shift and g-shift x<>y show the left and right halves of the number including all digits.


Pauli
Find all posts by this user
Quote this message in a reply
09-23-2018, 01:08 AM
Post: #3
RE: Finally found a use for my WP34s that I can't replicate elsewhere
You can use Wolfram Alpha: http://m.wolframalpha.com/input/?i=EulerGamma
Find all posts by this user
Quote this message in a reply
09-23-2018, 01:50 AM (This post was last modified: 09-23-2018 01:54 AM by Joe Horn.)
Post: #4
RE: Finally found a use for my WP34s that I can't replicate elsewhere
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.

<0|ΙΈ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
09-23-2018, 04:13 AM
Post: #5
RE: Finally found a use for my WP34s that I can't replicate elsewhere
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)).
Find all posts by this user
Quote this message in a reply
09-23-2018, 04:48 AM
Post: #6
RE: Finally found a use for my WP34s that I can't replicate elsewhere
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
Find all posts by this user
Quote this message in a reply
09-25-2018, 09:04 PM
Post: #7
RE: Finally found a use for my WP34s that I can't replicate elsewhere
To see the calculator solve Ei(-x):

https://www.youtube.com/watch?v=i_89KNzG...e=youtu.be
Find all posts by this user
Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)