Re: TI-M: Even Square
[Prev][Next][Index][Thread]
Re: TI-M: Even Square
Sorry, I didn´t know what´s the meaning of even.
even: 0,2,4,6...
odd: 1,3,5,7....
Isn´t it?
Paul Schippnick wrote:
> With out the /2 an 5 will give 9. Which is an odd square not an even square.
> By dividing by 2 it returns an even square 5 will return 16.
>
> ----- Original Message -----
> From: "Víctor Manuel Ropero Martín" <victor-manuel@ctv.es>
> To: <ti-math@lists.ticalc.org>
> Sent: Friday, May 26, 2000 5:22 PM
> Subject: Re: TI-M: Even Square
>
> >
> > Why "/2" ????
> >
> > Paul Schippnick wrote:
> >
> > > With the minor correction (maybe you forgot /2) it works.
> > >
> > > Input A
> > > While fpart(Sqrt(A)/2)=/=0 (not 0)
> > > A+1->A
> > > End
> > > Disp A
> > >
> > > ----- Original Message -----
> > > From: "Víctor Manuel Ropero Martín" <victor-manuel@ctv.es>
> > > To: <ti-math@lists.ticalc.org>
> > > Sent: Thursday, May 25, 2000 5:12 AM
> > > Subject: Re: TI-M: Even Square
> > >
> > > >
> > > > This is a good way to get the even square of a:
> > > >
> > > > Input A
> > > > While fpart(Sqrt(A))=/=0 (not 0)
> > > > A+1->A
> > > > End
> > > > Disp A
> > > >
> > > >
> > > >
> >
> >
> >
> >
Follow-Ups:
References: