The Museum of HP Calculators

HP Forum Archive 21

[ Return to Index | Top of Index ]

Quadratic & Cubic Regression RPN progs
Message #1 Posted by Matt Agajanian on 15 Sept 2013, 12:01 a.m.

Hello all.

I'm looking for programs for Cubic and Quadratic Regression programs so that I can program HP-67, HP-34C, HP-41/42S and the other programmable Voyagers, Spices, etc.

Thanks

Edited: 15 Sept 2013, 12:01 a.m.

      
Re: Quadratic & Cubic Regression RPN progs
Message #2 Posted by Pier Aiello on 15 Sept 2013, 2:53 a.m.,
in response to message #1 by Matt Agajanian

With a quick search i have gathered some discussions (from MoHPC) here: Best discussions of Hp calcs' community (wiki4hp)

Edited: 15 Sept 2013, 2:58 a.m.

            
Re: Quadratic & Cubic Regression RPN progs
Message #3 Posted by Matt Agajanian on 15 Sept 2013, 3:08 p.m.,
in response to message #2 by Pier Aiello

Hello there.

Thanks for the link. What would help me out greatly is if you can tell me what the special symbols (the ones like \lf\->, \->, etc.) in steps 36, 37, 41 and 42 are of the HP-42S program here:

PolyFit for 42S

Thanks

                  
Re: Quadratic & Cubic Regression RPN progs
Message #4 Posted by Pier Aiello on 15 Sept 2013, 4:33 p.m.,
in response to message #3 by Matt Agajanian

Dunno, i don't have one. Maybe on the 42s manual is explained or i'll do another search when i have time.

                  
Re: Quadratic & Cubic Regression RPN progs
Message #5 Posted by Andrew Feist on 15 Sept 2013, 10:13 p.m.,
in response to message #3 by Matt Agajanian

I'm pretty sure \lf is "line feed" and \-> is "arrow". Don't have a 42, so I don't know how to actually type those in.

                  
Re: Quadratic & Cubic Regression RPN progs
Message #6 Posted by Tom Grydeland on 16 Sept 2013, 5:50 a.m.,
in response to message #3 by Matt Agajanian

Quote:
What would help me out greatly is if you can tell me what the special symbols (the ones like \lf\->, \->, etc.) in steps 36, 37, 41 and 42 are

\lf is line feed. In the alpha menu (p.2) choose "PUNC", then button 6 from p2 of that menu (hencerforth Alpha/2 > punc/2 > LF)

\-> and \<- are arrows. Alpha/2 > [arrows] > your choice

\SIGMA is the capital greek letter. Alpha/2 > math > \SIGMA

Any other symbols unclear?

                        
Re: Quadratic & Cubic Regression RPN progs
Message #7 Posted by Matt Agajanian on 16 Sept 2013, 4:57 p.m.,
in response to message #6 by Tom Grydeland

Okay. Thanks. Moving on, because the ' \ ' symbol is unfamiliar, please clarify steps 52, 91, 94, 190, 225, 229, 243, 259.

Thanks again.

                              
Re: Quadratic & Cubic Regression RPN progs
Message #8 Posted by Jeff O. on 17 Sept 2013, 9:17 a.m.,
in response to message #7 by Matt Agajanian

Matt,
I believe the "\" (back-slash) symbol is some sort of "escape" character that the original author used to format the program listing. It is not a command or part of a command to be entered into the calculator. So wherever you see the backslash, just take it out. So your questioned lines would look as follows:

36 |-" [x,y]LF-> Y, na"
37 |-"t# order -> x .."
41 |-"d inLFvars SIGMADAT"
etc.

The "|-" is the append symbol, entered by pressing ENTER after entering alpha entry mode.

I believe that the "*" symbol is intended to be the multiply symbol, which on the 42s is shown as an "x" (lower-case X) elevated one pixel.

As Tom said above, the "LF" is the line feed character, which is on the second page of the PUNC menu in alpha mode.

Hope this helps.

Jeff

                                    
Re: Quadratic & Cubic Regression RPN progs
Message #9 Posted by Tom Grydeland on 17 Sept 2013, 9:31 a.m.,
in response to message #8 by Jeff O.

Jeff O. said:

Quote:
I believe the "\" (back-slash) symbol is some sort of "escape" character that the original author used to format the program listing. It is not a command or part of a command to be entered into the calculator. So wherever you see the backslash, just take it out.

That's the way I read it also. I would say "replace the \ and the character(s) that immediately follow with the (unprintable) character they are meant to represent."

So, the string "\->" in the listing represent _one_ character in a HP-42S string, namely {right arrow}.

Similarly, I suppose "\.." represents the "ellipsis" character, Alpha/2 > Punc/2 > {...}

Does anyone have instructions on how to actually use this program?

                                          
Re: Quadratic & Cubic Regression RPN progs
Message #10 Posted by Jeff O. on 17 Sept 2013, 11:37 a.m.,
in response to message #9 by Tom Grydeland

Quote:
I would say "replace the \ and the character(s) that immediately follow with the (unprintable) character they are meant to represent."

Yes, that is a better way to explain it.

I did not think to look for the ellipsis in the PUNC menu. He probably meant that, but I wonder why he did not type three dots in the listing.

Regarding how to use, I have no personal knowledge. The PREGR.TXT file available at hpcalc.org tells how to use the HP-48 version.

Edited: 18 Sept 2013, 7:50 a.m.


[ Return to Index | Top of Index ]

Go back to the main exhibit hall