(35S) yet another R<>P Conversion - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: General Software Library (/forum-13.html) +--- Thread: (35S) yet another R<>P Conversion (/thread-2924.html) |
(35S) yet another R<>P Conversion - MarkHaysHarris777 - 01-25-2015 09:12 AM I've posted this for Thomas (previous discussion today) but others especially new to the 35s might be interested: Yet another R<>P conversion routine. I'll put the codes first, and then the explanation of usage thereafter. Like I told Thomas, it makes no claims, is trivial, WORKS, and is just one example. There are scads of these (kinda fun to collect them) which beg the question, "why does the HP35s get such a pounding because it doesn't have any easy decomposition routines for R<>P?" Here is the code: Code:
To use to convert R<>P (default) place Y in y, and place X in x, press [XEQ] [P] [ENTER] Leave the (-1) default parm for R<>P mode and press [R/S] y will hold R, x will hold theta (phase angle) To use to convert P<>R place R in y, place theta (angle) in x, press [XEQ] [P] [ENTER] Change (-1) to (1) with the [+/-] key and press [R/S] y will hold Y, x will hold X Also, after running this routine X, Y, R, and Theta will be in registers respectively: X, Y, R, A This thing can be optimized and altered by using complex numbers and [ABS] with [ARG]. Also, the hidden codes REGx and REGy might be useful. This is just one way to solve this problem, is easy, works, and is almost trivial all things considered. So, it eliminates one negative irk of the HP35s for some users. I don't know. Enjoy RE: HP35s yet another R<>P Conversion - Thomas Klemm - 01-25-2015 12:27 PM (01-25-2015 09:12 AM)MarkHaysHarris777 Wrote: This won't work if X = 0. Quote: This thing can be optimized and altered by using complex numbers and [ABS] with [ARG]. See: ->P and ->R conversions for the HP-35s in the Original Software Library. Cheers Thomas RE: HP35s yet another R<>P Conversion - Paul Dale - 01-25-2015 10:07 PM (01-25-2015 12:27 PM)Thomas Klemm Wrote: See: ->P and ->R conversions for the HP-35s in the Original Software Library. It is still difficult to go past these two community routines for these functions. They just work as expected in everything except last X. - Pauli RE: HP35s yet another R<>P Conversion - MarkHaysHarris777 - 01-25-2015 11:34 PM (01-25-2015 12:27 PM)Thomas Klemm Wrote: Yes, thank you! Well and good, and my bad too on another thing... I noticed that the routine really needs to decompose the complex (which mine does not yet) ... maybe later tonight. (01-25-2015 10:07 PM)Paul Dale Wrote: It is still difficult to go past these two community routines for these functions. They just work as expected in everything except last X. Paul, how do you want LASTx to work with this type of routine; which LASTx should be left in the LASTx register. i know the definition of "value of x just before the last operation" but that definition really depends on the *operations* defined for LASTx. I can think of several ways to make sense of LASTx with a complex decomposition routine. Just wondering what your take was. Thanks. RE: HP35s yet another R<>P Conversion - Paul Dale - 01-25-2015 11:39 PM (01-25-2015 11:34 PM)MarkHaysHarris777 Wrote: Paul, how do you want LASTx to work with this type of routine; which LASTx should be left in the LASTx register. i know the definition of "value of x just before the last operation" but that definition really depends on the *operations* defined for LASTx. I can think of several ways to make sense of LASTx with a complex decomposition routine. Just wondering what your take was. Thanks. I think this nails does the reasoning for not doing it pretty well. Pauli RE: HP35s yet another R<>P Conversion - MarkHaysHarris777 - 01-26-2015 12:38 AM (01-25-2015 11:39 PM)Paul Dale Wrote:(01-25-2015 11:34 PM)MarkHaysHarris777 Wrote: Paul, how do you want LASTx to work with this type of routine; which LASTx should be left in the LASTx register. i know the definition of "value of x just before the last operation" but that definition really depends on the *operations* defined for LASTx. I can think of several ways to make sense of LASTx with a complex decomposition routine. Just wondering what your take was. Thanks. hihi LOL... knew that was coming... |