Post Reply 
HP Prime CAS & Large numbers
09-27-2023, 10:37 AM
Post: #9
RE: HP Prime CAS & Large numbers
(09-08-2022 09:14 AM)Mario Blasone Wrote:  I tried to find the largest integer number that the Prime can manage in CAS.
I guess CAS integer are internally formatted in binary, so I empirically searched the largest power of 2 before the Prime returns "undefined": it is 2^8598.
I guess that the largest integer is (mathematically) 2^8599-1, but you can't write this expression on Prima without getting "undefined".

Your conclusions seems substantially correct.
Just to be more precise, the max_integer obtained with Sum(2^n,0,2598) is 8599 bits long (not 8598), because each addend is a binary 1 at position n followed by all binary 0, but n ranger from 0 to 8598; i.e 8599 positions (bits). It is more evident if the expression to get the max_integer on HP Prime is written in this equivalent mode: Sum(2^(n-1),1,8599) i.e. summation of 8599 terms from 2^0 to 2^8598.
Min negative integer (max negative) is Sum(-2^n,1,8598).
Globally speaking, on HP CAS, integers seems to be stored in binary form with 8600 digits (including sign), ranging from -2^8598 (through 0) up to 2^8599.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP Prime CAS & Large numbers - Bipman - 08-10-2017, 08:27 AM
RE: HP Prime CAS & Large numbers - Arno K - 08-10-2017, 11:35 AM
RE: HP Prime CAS & Large numbers - Bipman - 08-10-2017, 11:39 AM
RE: HP Prime CAS & Large numbers - Bipman - 08-10-2017, 02:03 PM
RE: HP Prime CAS & Large numbers - Bipman - 08-13-2017, 09:11 AM
RE: HP Prime CAS & Large numbers - Mario Blasone - 09-27-2023 10:37 AM
RE: HP Prime CAS & Large numbers - parisse - 09-27-2023, 06:37 PM
RE: HP Prime CAS & Large numbers - parisse - 09-29-2023, 10:46 AM



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