Post Reply 
HP Prime CAS & Large numbers
10-01-2023, 10:44 AM
Post: #15
RE: HP Prime CAS & Large numbers
Thank you Parisse for your clarifications.
(8600_bit=8600/(8*1024)_Byte=1075/1024_Byte, about 1.05_KByte)
I made some trials with my virtual HP Prime assigning growing values to an integer variable n and looking a its memory size (with [shift] Mem / CAS Variables / n ; values shown in KB and up to 2 decimals for small sizes).
The memory used to store n grows with the value up to 2KB for monster big integers.
The reported memory size is rounded and the threshold values of n to increase the size are not precisely found from experimentation (what precisely means 0.01_KB ? round(1024/100) ?).
Anyway, for integer values up to (2^31)-1 the mem_size is 0.01_KB and building a table gives:
Int n values Mem_size
+---------------------+-----------
0 .. (2^31)-1 0.01_KB
2^31 .. (2^44)-1 0.02_KB
2^44 .. (2^84)-1 0.03_KB
2^84 .. (2^128)-1 0.04_KB
2^128 .. (2^168)-1 0.05_KB
and so on.
Very last threshold interval seems different:
2^3936 .. (2^3976)-1 0.98_KB (Ok)
2^3976 .. (2^4016)-1 0.99_KB (Ok)
2^4016 .. (2^6084)-1 1_KB (large interval, no further fractional values for mem_size)
2^6084 .. max_int 2_KB (without intermediate steps!).
Probably this is due to round-off of reported mem_size. For the same reason the 2_exp intervals of successive threshold values are about 40, but not always constant ( 44-31=11 (exception); 84-44=40; 40; 44; ...; 40; 40; 2068 (last jump) ).

I will open a new thread about adding "Help" instructions to user defined functions / programs.
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 - parisse - 09-27-2023, 06:37 PM
RE: HP Prime CAS & Large numbers - parisse - 09-29-2023, 10:46 AM
RE: HP Prime CAS & Large numbers - Mario Blasone - 10-01-2023 10:44 AM



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