The Museum of HP Calculators

HP Forum Archive 18

[ Return to Index | Top of Index ]

HP35s: Interpolate
Message #1 Posted by ChristianB. on 18 Dec 2007, 10:36 a.m.

Hi,

just got my 35s (78,- EUR incl. shipping from dynatech.de), seems to be a nice piece of hardware. But anyway....

I often do interpolation. On my 49g+ it was an easy programm with 5 values in the stack. The RPN programm was:

<< -> A B C D E '(D-B)/(C-A)*(E-A)+B' >>

If have no good idea how to do it on my 35s. Do have to use 5 (!) Labels for the variables and anotherone for the programme, or is there another (better) way?

How would you do it?

Regards from Hamburg !!

ChristianB

      
Re: HP35s: Interpolate
Message #2 Posted by Thomas Radtke on 18 Dec 2007, 11:02 a.m.,
in response to message #1 by ChristianB.

If you have to keep the content of the named variables, you should make yourself familiar with *indirect addressing* (Page 14-20 in the english manual). There's plenty of space in the 35s accessible this way.

      
Re: HP35s: Interpolate
Message #3 Posted by Meenzer on 18 Dec 2007, 11:11 a.m.,
in response to message #1 by ChristianB.

Put

(D-B)/(C-A)*(E-A)+B

in an EQN. Run the EQN by pressing XEQ when you have chosen it and you'll be prompted for the 5 values A to E (each only once, not twice in the case of A or B). No need for a program at all.

Edited: 18 Dec 2007, 11:11 a.m.

            
Re: HP35s: Interpolate
Message #4 Posted by Brad Davis on 19 Dec 2007, 5:35 p.m.,
in response to message #3 by Meenzer

LOL, I had a similar program on my 48G. I only had about 3 programs and this was one of them.

On my 35s, I use linear regression to do this and it is very fast--probably faster than finding and running my program on my 48G.

Clear the stat data, enter the two known x,y pairs, enter the known x and hit L.R. You should see your unknown y value.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall