The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

HP 35s Polar to Rectangler in Program mode
Message #1 Posted by Will Hart on 5 Dec 2007, 5:24 p.m.

I recently read an the message by Howard Boardman on Rectangular to polar. I tried the program. Just what I am lookin for. Does any one have s simple program mode routine to convert from Polar to Rectangler.

I have been working on converting my 41cx Survey program to work on the 35s. Just need a little help. Thanks

      
Re: HP 35s Polar to Rectangler in Program mode
Message #2 Posted by Paul Dale on 5 Dec 2007, 5:28 p.m.,
in response to message #1 by Will Hart

Here are the two routines we came up with months ago to do the conversions. Stack remains (otherwise) untouched and settings independent.

- Pauli

P001  LBL P
P002  FS? 10
P003  GTO P011
P004* Rv
P005  Rv
P006  (EQN) REGZ+i*REGT
P007  ARG
P008  LASTx
P009  ABS
P010  RTN
P011* CF 10
P012  XEQ P004
P013  SF 10
P014  RTN

R001 LBL R R002 FS? 10 R003 GTO R012 R004* Rv R005 Rv R006 eqn [REGZ*SIN(REGT),REGZ*COS(REGT)] R007 [1,0] R008 x<>y R009 * R010 EQN LASTx*[0,1] R011 RTN R012* CF 10 R013 XEQ R004 R014 SF 10 R015 RTN

            
Re: HP 35s Polar to Rectangler in Program mode
Message #3 Posted by Trent Moseley on 5 Dec 2007, 10:42 p.m.,
in response to message #2 by Paul Dale

Sometime ago Reth posted a couple of somewhat shorter programs:

P001 LBL P
P002 x<>y
P003 STO R
P004 Rv
P005 i
P006 RCL x R
P007 +
P008 ARG
P009 LST x
P010 ABS
P011 RTN

R001 LBL R R002 STO R R003 Rv R004 SIN R005 LST x R006 COS R007 RCL x R R008 x<>y R009 RCL x R R010 x<>y R011 RTN

tm

      
Re: HP 35s Polar to Rectangler in Program mode
Message #4 Posted by Will Hart on 6 Dec 2007, 9:02 a.m.,
in response to message #1 by Will Hart

I have a few employees want to sit for the NCEES Surveyor in training and others going for the CST testing. The 35s was just approved in October 07. The 35s is a better choice over the 33s

Thanks

      
Re: HP 35s Polar to Rectangler in Program mode
Message #5 Posted by Howard Boardman on 6 Dec 2007, 3:35 p.m.,
in response to message #1 by Will Hart

I've been using the following subroutines in my programs and they seem to work perfect:

For R -> P

LBL S

x<>y

i

x

+

ARG

LASTx

ABS

RTN

For P -> R

x<>y

COS

x<>y

LASTx

SIN

x<>y

x

x<>y

LASTx

x

RTN

I didn't come up with these but they work perfectly. I still as of yet do not understand the complex number stuff with the 35s. I'm mainly doing surveying programs and if it ain't broke don't fix it!

            
Re: HP 35s Polar to Rectangler in Program mode
Message #6 Posted by Trent Moseley on 6 Dec 2007, 10:55 p.m.,
in response to message #5 by Howard Boardman

Howard

Close but no cigar. Your R>P program (I did not check out P>R) does not give the same results of Reth's program. His routine gives the same results as the HP-32ii which has the conversions available on on the keyboard.

tm

                  
Re: HP 35s Polar to Rectangler in Program mode
Message #7 Posted by Howard Boardman on 7 Dec 2007, 1:25 a.m.,
in response to message #6 by Trent Moseley

Trent I get the same result as the 33s. All my programs with the subroutine work the same in the 35s as the 33s. Please provide an example to show me.

                        
Re: HP 35s Polar to Rectangler in Program mode
Message #8 Posted by Trent Moseley on 7 Dec 2007, 10:51 p.m.,
in response to message #7 by Howard Boardman

Will do in the next few days.

tm

                        
Re: HP 35s Polar to Rectangler in Program mode
Message #9 Posted by Trent Moseley on 11 Dec 2007, 11:22 p.m.,
in response to message #7 by Howard Boardman

Howard-

Re Rectangler to Polar (or the old ->P)

I finally found the problem. Your program works just fine. The trouble I was having with your algorithm in my programs is in the stack. The HP calcs that have the simple conversion key and Reth's routine for the 35S don't lose the data in both the Z and T registers after data entry in the X and Y. I did't look into the ->R program.

tm


[ Return to Index | Top of Index ]

Go back to the main exhibit hall