(35S) yet another R<>P Conversion

01252015, 09:12 AM
(This post was last modified: 06152017 01:31 PM by Gene.)
Post: #1




(35S) yet another R<>P Conversion
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 Kind regards, marcus 

01252015, 12:27 PM
Post: #2




RE: HP35s yet another R<>P Conversion
(01252015 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 HP35s in the Original Software Library. Cheers Thomas 

01252015, 10:07 PM
Post: #3




RE: HP35s yet another R<>P Conversion
(01252015 12:27 PM)Thomas Klemm Wrote: See: >P and >R conversions for the HP35s 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 

01252015, 11:34 PM
(This post was last modified: 01252015 11:35 PM by MarkHaysHarris777.)
Post: #4




RE: HP35s yet another R<>P Conversion
(01252015 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. (01252015 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. Kind regards, marcus 

01252015, 11:39 PM
Post: #5




RE: HP35s yet another R<>P Conversion
(01252015 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 

01262015, 12:38 AM
Post: #6




RE: HP35s yet another R<>P Conversion
(01252015 11:39 PM)Paul Dale Wrote:(01252015 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... Kind regards, marcus 

« Next Oldest  Next Newest »

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