From: Lone HPUser on
I am the only one using an HP 50g in my class (that I know). First day
of class the teacher asks us to do a Regression. All other students
manage to generate a nice scatter plot with connecting dots and all,
except me of course.

I researched this forum and found PREGR.
Downloaeded, STOred it as a variable within HOME.
Entered the (SIGMNA)DAT info and save it.

Now what? Everytime I enter the angle in the example from another
forum entry, I get the text of the program to come up. What steps
should take for PREGR to work?

Do I type the X value and hit ENTER so that it is in the stack?
Do I hit the PREGR variable key from within the VAR menu?


From: Dave on
On Jan 28, 10:35 am, Lone HPUser <claude.barr...(a)yahoo.com> wrote:
> I am the only one using an HP 50g in my class (that I know). First day
> of class the teacher asks us to do a Regression. All other students
> manage to generate a nice scatter plot with connecting dots and all,
> except me of course.
>
> I researched this forum and found PREGR.
> Downloaeded, STOred it as a variable within HOME.
> Entered the (SIGMNA)DAT info and save it.
>
> Now what? Everytime I enter the angle in the example from another
> forum entry, I get the text of the program to come up. What steps
> should take for PREGR to work?
>
> Do I type the X value and hit ENTER so that it is in the stack?
> Do I hit the PREGR variable key from within the VAR menu?

Assuming your data is stored in the first two columns of SigmaDAT, you
just enter the order of polynomial you want onto level 1 of the stack,
and run PREGR. So if you want to do a cubic regression: 3 ENTER PREGR.
The data and regression line will be plotted, and the regression
equation will be stored in EQ, and also left on level 1 of the stack.

-Dave Britten
From: John H Meyers on
On Thu, 28 Jan 2010 09:35:06 -0600, Lone HPUser wrote:

> I am the only one using an HP 50g in my class (that I know).
> First day of class the teacher asks us to do a Regression.

So did we, but it was an acting class :)

> All other students manage to generate a nice scatter plot
> with connecting dots and all, except me of course.

All who hear different drummers have to blaze their own trails.

> I researched this forum and found PREGR.
> Downloaded, STOred it as a variable within HOME.

Where did you "find" PREGR,
and exactly how did you "download"?

> Entered the (SIGMNA)DAT info and save it.

> Now what? Every time I enter the angle in the example from another
> forum entry, I get the text of the program to come up.

You evidently downloaded the text as a (quoted) character string,
representing the "source" (uncompiled),
neither as a binary file version of the program
nor in "ascii" mode so that it would compile during transfer.

> Do I type the X value and hit ENTER so that it is in the stack?
> Do I hit the PREGR variable key from within the VAR menu?

ENTER is optional, and yes, but it will help
if the program is first stored or transferred as a program (binary) object,
since string objects are just data, not executable,
and are merely placed on the stack like other data.

[r->] [OFF]
From: Irl on
On Jan 28, 3:53 pm, "John H Meyers" <jhmey...(a)nomail.invalid> wrote:
> On Thu, 28 Jan 2010 09:35:06 -0600, Lone HPUser wrote:
> > I am the only one using an HP 50g in my class (that I know).
> > First day of class the teacher asks us to do a Regression.
>
> So did we, but it was an acting class :)
>
> > All other students manage to generate a nice scatter plot
> > with connecting dots and all, except me of course.
>
> All who hear different drummers have to blaze their own trails.
>
> > I researched this forum and found PREGR.
> > Downloaded, STOred it as a variable within HOME.
>
> Where did you "find" PREGR,
> and exactly how did you "download"?
>
> > Entered the (SIGMNA)DAT info and save it.
> > Now what? Every time I enter the angle in the example from another
> > forum entry, I get the text of the program to come up.
>
> You evidently downloaded the text as a (quoted) character string,
> representing the "source" (uncompiled),
> neither as a binary file version of the program
> nor in "ascii" mode so that it would compile during transfer.
>
> > Do I type the X value and hit ENTER so that it is in the stack?
> > Do I hit the PREGR variable key from within the VAR menu?
>
> ENTER is optional, and yes, but it will help
> if the program is first stored or transferred as a program (binary) object,
> since string objects are just data, not executable,
> and are merely placed on the stack like other data.
>
> [r->] [OFF]

John is right about the string problem, but perhaps it's worth
pointing out how to fix it. Maybe. Recall the object to the stack,
then execute OBJ-> ("convert an object" ... what it's converted to
depends on what kind of object it is), which will, in particular,
attempt to change a string into a program if the string appears
program-like. Maybe someone else can give a more succinct definition
of all the possible behaviors.
From: A.L. on
On Thu, 28 Jan 2010 07:35:06 -0800 (PST), Lone HPUser
<claude.barreto(a)yahoo.com> wrote:

>I am the only one using an HP 50g in my class (that I know).

Use HP50 as a toy. In the classroom use the same calculator as others.
Otherwise you will have problems constantly.

HP50 is victory of technology over common sense and was designed
mostly for geeks and hackers. It is classical example of paradigm "how
to make simple things complicated"

A,L.


 |  Next  |  Last
Pages: 1 2
Prev: Disassembling FPTR
Next: Large Floating Point Numbers