Best Pol/Rect and Complex Number Decomp for 35S
01-27-2019, 03:47 AM
Post: #11
 rprosperi Senior Member Posts: 3,575 Joined: Dec 2013
RE: Best Pol/Rect and Complex Number Decomp for 35S
(01-26-2019 04:23 PM)Dieter Wrote:
(01-26-2019 01:04 PM)rprosperi Wrote:  ...if you look closely you'll see these routines preserve the stack (incl LastX) and flags...

Yes for the stack and flags, but No regarding LastX. Which is not preserved – on exit it contains a complex number or a vector, respectively.

Well, that should teach me! I read a post claiming all was preserved and while I bothered to check the flags (by reading code) and the stack contents (by testing), and all was confirmed, I did not check the LastX and extrapolated it too was safe. Never, ever assume...

Thanks for this alternate version Dieter. For the 2nd time in a week, after not touching it for a couple years, I've decided to enter programs in my 35S. If I learned about how useful and well-behaved equations are on the 35S when I got mine in 2007, I've totally forgotten it, so Pauli and your programs are good examples of how this feature can be used to build well-behaved functions pretty easily.

--Bob Prosperi
 « Next Oldest | Next Newest »

 Messages In This Thread Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 12:43 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-26-2019, 02:21 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 03:37 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - ijabbott - 01-26-2019, 10:40 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-26-2019, 01:04 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-26-2019, 04:23 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - rprosperi - 01-27-2019 03:47 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 03:29 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Gene - 01-26-2019, 07:02 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Matt Agajanian - 01-26-2019, 07:17 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-26-2019, 08:49 PM RE: Best Pol/Rect and Complex Number Decomp for 35S - Gerald H - 01-27-2019, 08:26 AM RE: Best Pol/Rect and Complex Number Decomp for 35S - Dieter - 01-27-2019, 09:14 AM

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