HP Forums
Quadratic & Cubic Regression RPN progs - Printable Version

+- HP Forums (https://archived.hpcalc.org/museumforum)
+-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html)
+--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html)
+--- Thread: Quadratic & Cubic Regression RPN progs (/thread-250271.html)



Quadratic & Cubic Regression RPN progs - Matt Agajanian - 09-15-2013

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 - Pier Aiello - 09-15-2013

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 - Matt Agajanian - 09-15-2013

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 - Pier Aiello - 09-15-2013

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 - Andrew Feist - 09-15-2013

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 - Tom Grydeland - 09-16-2013

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 - Matt Agajanian - 09-16-2013

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 - Jeff O. - 09-17-2013

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 - Tom Grydeland - 09-17-2013

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 - Jeff O. - 09-17-2013

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.