![]() |
Newbie Stack/Memory Management (33s) - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: Newbie Stack/Memory Management (33s) (/thread-109229.html) |
Newbie Stack/Memory Management (33s) - Adam Price - 02-27-2007 I posted last week about the sample vector operations that come in the 33s manual. It turned out my trouble wasnot being in ALG mode. I didn't like the idea of switching modes every time I wanted to do vector products, so I am rewriting in RPN. This also gives me the opportunity to restructure to match my workflow a little closer. TASK: Display or Input U,V,W coordinates. (May be called independently or from another routine) Calculate and display magnitude of vector.
METHOD A: INPUT U
METHOD B INPUT U
Advantages I see: I used STO M / VIEW M because I wanted to not have the time restriction of PSE. Is there a better way? I doubt I will ever need the variable to actually be stored. Is there anything else that folks would think about when forming a little snippet like this? One wants to begin a new language with good habits. Thanks
Adam
|