Post Reply 
(41C 32S): n = a^2 + b
07-18-2021, 09:19 AM (This post was last modified: 07-18-2021 09:23 AM by J-F Garnier.)
Post: #3
RE: (41C 32S): n = a^2 + b
(07-18-2021 05:00 AM)Eddie W. Shore Wrote:  This technique is useful, especially with the HP 32S and HP 32SII. Normally, real numbers take up 9.5 bytes of memory on the HP 32S series. Integers 0 - 100 only consume 1.5 bytes of memory for the original HP 32S and the range is extended to 0 - 254 for the HP 32SII.
I didn't remember that the range was up to 254 for the 32SII. That's perfectly correct of course. Thanks for reminding us.

(07-18-2021 06:17 AM)C.Ret Wrote:  I have not fully understand why this spare memory since, two registers may be more than one.
The 32S/32SII have so little memory that using numeric constants (other than the 0..99 or 0..254) in a program must be avoided. For instance, it is much better to do 12 +/- rather than -12). To enter large constants (e.g. 1000), we have better to do for instance 10 ENTER x^2 * or if speed is not a concern 3 10^x.

Quote:EDIT:
In this sunny sunday mornig, I was posting this message when by rereading it, a shorter and simpliest version pop up in my awaking brain that use a MOD instruction :

Code:
01 LBL "SQYX2"
02 ENTER^  SQRT  INT  MOD  LSTX
06 END
Unfortunately, the 32S/32SII lack the MOD function.

J-F
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
(41C 32S): n = a^2 + b - Eddie W. Shore - 07-18-2021, 05:00 AM
RE: (41C 32S): n = a^2 + b - C.Ret - 07-18-2021, 06:17 AM
RE: (41C 32S): n = a^2 + b - J-F Garnier - 07-18-2021 09:19 AM



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