Post Reply 
No (Or Limited) Arbitrary Precision Integers / Exact Mode?
12-17-2013, 02:49 PM (This post was last modified: 12-17-2013 04:47 PM by John R. Graham.)
Post: #1
No (Or Limited) Arbitrary Precision Integers / Exact Mode?
Similar to my No RPL? question, this is just based on reading the User Guide. One of the features I use fairly heavily on the HP50 is the built-in arbitrary precision large number math (i.e., exact mode). Does this exist on the Prime?

There's reference to this being available in the CAS but a somewhat ominous statement that calculations done in the Home view often yield numerical approximations. Are exact numbers not a first class citizen on the Prime?

- John
Find all posts by this user
Quote this message in a reply
12-17-2013, 04:08 PM
Post: #2
RE: No (Or Limited) Arbitrary Precision Integers?
Hello!

In CAS mode ---> Settings you can check "[ ] EXACT".....

Or you refer to another topic?
Find all posts by this user
Quote this message in a reply
12-17-2013, 04:25 PM (This post was last modified: 12-17-2013 04:27 PM by John R. Graham.)
Post: #3
RE: No (Or Limited) Arbitrary Precision Integers?
Yes, I saw that, but what it appears might be implied is that exact numbers are not supported uniformly across the whole calculator. As a trivial example, when I enter (on my HP50g)
Code:
2 [Enter] 6 ÷
then I expect to see the result \(\frac{1}{3}\) on the stack. If I need the numeric approximation, then it's just a keystroke away.

- John
Find all posts by this user
Quote this message in a reply
12-17-2013, 05:10 PM (This post was last modified: 12-17-2013 05:11 PM by ArielPalazzesi.)
Post: #4
RE: No (Or Limited) Arbitrary Precision Integers / Exact Mode?
(12-17-2013 04:25 PM)John R. Graham Wrote:  Yes, I saw that, but what it appears might be implied is that exact numbers are not supported uniformly across the whole calculator. As a trivial example, when I enter (on my HP50g)
Code:
2 [Enter] 6 ÷
then I expect to see the result \(\frac{1}{3}\) on the stack. If I need the numeric approximation, then it's just a keystroke away.

- John

In CAS Mode, 1/3 = \(\frac{1}{3}\) on the stack.

In Home Mode, 1/3 = 0.33333333333 on the stack.

CAS Mode and Home Mode works different, obviusly Wink
Find all posts by this user
Quote this message in a reply
12-17-2013, 05:34 PM
Post: #5
RE: No (Or Limited) Arbitrary Precision Integers / Exact Mode?
Or, in CAS:

2÷6 [Enter] enters 1/3 into history.

[Shift-Enter] puts .333 into history.

Except for RPN this seems like the same thing as the 50g.
Find all posts by this user
Quote this message in a reply
12-17-2013, 05:48 PM (This post was last modified: 12-17-2013 10:27 PM by John R. Graham.)
Post: #6
RE: No (Or Limited) Arbitrary Precision Integers / Exact Mode?
Thanks. However, I kind of got off topic here for a moment. Is there a variable type that is manipulatable from PPL that will represent an exact arbitrary precision integer? The only reference I see to integers in the documentation are the binary numbers, which seem to be strictly limited in precision (just like they are on the HP50).

- John
Find all posts by this user
Quote this message in a reply
12-19-2013, 05:58 AM
Post: #7
RE: No (Or Limited) Arbitrary Precision Integers / Exact Mode?
(12-17-2013 05:48 PM)John R. Graham Wrote:  Is there a variable type that is manipulatable from PPL that will represent an exact arbitrary precision integer? The only reference I see to integers in the documentation are the binary numbers, which seem to be strictly limited in precision (just like they are on the HP50).

Not in Home, which is like approximate mode on the 50g. Long integers are only available in CAS (which is like exact mode on the 50g), from which they can be stored in any CAS variable. So if you want to use them in a program, it must be a CAS program, not a "normal" program. My PDQ program (posted in the Prime Software section, see link below) is an example of this. It allows inputs of any length, and can generate "infinite precision" results such as fractions whose numerator and denominator are integers with more than 12 digits each.

PDQ with examples is here: http://www.hpmuseum.org/forum/thread-61.html

BUT WAIT! I just set a CAS variable equal to a large integer, then went back into Home, and tried ifactor (a CAS function) on it while in Home. It got the same full-accuracy result as ifactor gets in CAS! So variables containing long integers CAN be used with full accuracy in Home... but only if handled by CAS functions. Perhaps normal programs can use long integers too, if first saved in CAS variables? Maybe! This should be explored further.

<0|ɸ|0>
-Joe-
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 




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