The Museum of HP Calculators

HP Forum Archive 17

[ Return to Index | Top of Index ]

35s Polar-Rectangular Conversions
Message #1 Posted by Trent Moseley on 16 Aug 2007, 10:24 p.m.

I want to thank Reth, Thomas Radtke, Paul Dale, and Gene Wright for helping us all with their programs and helpful guidance regarding these conversions on the HP-35s.

tm

      
Re: 35s Polar-Rectangular Conversions
Message #2 Posted by Vincze on 17 Aug 2007, 8:37 a.m.,
in response to message #1 by Trent Moseley

It would be nice if we had one article that summarized these conversions and maybe Mr Hicks would be so kind to post that to his site someplace.

            
Re: 35s Polar-Rectangular Conversions
Message #3 Posted by Kelly Huckman on 17 Aug 2007, 8:54 a.m.,
in response to message #2 by Vincze

Yep, it would be nice. Until then you can find the programs here, just in case you missed the thread the first time around.

Thanks to those involved from myself as well.

                  
x+iy and apply ARG
Message #4 Posted by Vincze on 17 Aug 2007, 9:27 a.m.,
in response to message #3 by Kelly Huckman

Strange, as I thought in different post, someone say x+iy and apply ARG to get P -> R conversion. Not sure though how you would go back.

                        
Re: x+iy and apply ARG
Message #5 Posted by Kelly Huckman on 17 Aug 2007, 9:44 a.m.,
in response to message #4 by Vincze

ARG returns the polar angle and ABS returns the magnitude.

That's basically what's happening in this line of Paul Dale's code:

P006 eqn [ATAN(REGT/REGZ),SQRT(SQ(REGT)+SQ(REGZ))]

This is just better because you don't lose the Z and T registers.

Edited: 17 Aug 2007, 9:46 a.m.

                              
Re: x+iy and apply ARG
Message #6 Posted by Vincze on 17 Aug 2007, 9:50 a.m.,
in response to message #5 by Kelly Huckman

So to get it back to P, I just do X+iY ABS? Why does that not make sense?

I guess the point I try to make before though, is it would be nice to have summary of program or key stroke that do this. With the link you provide, you must read through all posts to figure out which one most efficient.

Even now, I look at listings and not sure which one to use. I just know x+iy ARG give me R

Edited: 17 Aug 2007, 9:56 a.m.

                                    
Re: x+iy and apply ARG
Message #7 Posted by Kelly Huckman on 17 Aug 2007, 9:58 a.m.,
in response to message #6 by Vincze

Paul Dale's second posting of the programs. Message #15.

Edited: 17 Aug 2007, 9:58 a.m.

                                          
Re: x+iy and apply ARG
Message #8 Posted by Vincze on 17 Aug 2007, 10:17 a.m.,
in response to message #7 by Kelly Huckman

One thing I do not understand in his post if when he enters SF 10? How do you get the question mark?

Also, I see next to his line numbers sometime an *. What does this indicate? I see this in other listings too.

                                                
Re: x+iy and apply ARG
Message #9 Posted by Gene Wright on 17 Aug 2007, 10:49 a.m.,
in response to message #8 by Vincze

There should be no question mark after a SF 10 instruction.

There IS a question mark if you are testing the flag using a FS? 10 instruction.

The asterisk indicates that the line number the asterisk is next to is the destination of a GTO or XEQ from somewhere else in the program.

This has been manually typed into the program listing to help find the step number when reading the program.

It does not show up in the 35s itself.

                                                      
Re: x+iy and apply ARG
Message #10 Posted by Vincze on 17 Aug 2007, 11:04 a.m.,
in response to message #9 by Gene Wright

Sorry for this Les, but I a stupid Hungarian. ;) I misread what was typed. I feel so stupid.

            
Re: 35s Polar-Rectangular Conversions
Message #11 Posted by Paul Dale on 19 Aug 2007, 5:02 p.m.,
in response to message #2 by Vincze

I have submitted the conversion programs to the MoHPC software library. It will turn up eventually.

I didn't think writing an article as well would add anything. Although it would be available a little more quickly.

- Pauli

                  
Re: 35s Polar-Rectangular Conversions
Message #12 Posted by Vincze on 19 Aug 2007, 7:13 p.m.,
in response to message #11 by Paul Dale

It might be nice too if you submit it to Datafile for publication.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall