Post Reply 
HP Spice series simulators for iPhone
02-21-2016, 07:07 PM
Post: #20
RE: HP Spice series simulators for iPhone
(02-21-2016 12:16 PM)Willy R. Kunz Wrote:  
(02-21-2016 12:27 AM)Matt Agajanian Wrote:  Okay. Here's what I notice:

After going through the HP-45 and onward steps for the Mach calculation, I tried the HP-35 variation--ENTER^ x for x^2. So, after I press 350 ENTER^ 661.5 / ENTER^ x

somehow when I enter 0.2 x, the result is 0. It seems after the HP-35 method of ENTER^ x, the stack lift is disabled and 0.2799 is cleared from the Y register. Just a hunch but, it seems +, -, x, and / disable stack lift. But, like I said, when I tried the HP-35 method of ENTER^ x to square, somehow stack lift doesn't go.

Ah, now I see what you mean. It's not about a calculation error, but a stack lift problem. And yes, it's a bug, plain and simple, caused by not uncommenting a line in the source code. Already fixed for the next update.

What happens is that 5 ENTER +, for example, doesn't reenable automatic stack-lifting (disabled by the ENTER statement), so the next entry will overwrite the result. However, 5 ENTER y^x and most other operations are not affected by the bug.

As a workaround you can insert an x<>y operation. For example, 7 ENTER x<>y + would cause the stack to behave as expected.

RPN-38, while sharing a lot of code with RPN-32, works correctly.

Thanks for reporting the issue. If possible, please use the contact link on my website cuveesoft.ch for comments and bug reports, as I'm not visiting this forum on a daily basis.


Willy,

Thank you for looking into this. My apologies for making this post at MoHPC and not discretely sending you a message at CuVee's site.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP Spice series simulators for iPhone - Matt Agajanian - 02-21-2016 07:07 PM



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