RE: TI-M: Even Square
[Prev][Next][Index][Thread]
RE: TI-M: Even Square
If you just say "square", the implied domain (starting numbers that are
"allowed") is the integers (counting numbers). By this, if you just say
"square", you are talking about 1,4,9,16, etc., and maybe zero.
If you say "even square", you are only talking about those "squares" (as
above) that are divisible by two. I think that odd squares are more
interesting, myself.
Also, a note on "never-ending decimals"--9/4 is the square of 3/2, and 9/4
is a terminating decimal. This would be a member of the set of "squares of
number", where fractional squares (like 9/4 or 16/25 or 144/121) are
allowed (besides the usual 1,4,9,16,etc.).
By the way, if you just want to find the next regular old square and know
which square you're on, just add the appropriate odd number.
To make this fit the topic "ti-math," the following 89/92 code generates
the nth square (if you start by saying that "one" is the "zeroeth" square
and "four" is the "first" square):
Sum((2i+1),i,0,n)|n=whatever
If you want to make this generate even squares only, you can modify it to be
Sum((2i+1),i,0,2n+1)|n=whatever
But this is different from the problem as originally posed.
At 09:14 27-05-2000 -0500, you wrote:
>
>I could have sworn even square referred to the fact that when you took the
>square root, you got a nice neat number instead of a never ending decimal.
>I guess I could be wrong.
>
>> -----Original Message-----
>> From: owner-ti-math@lists.ticalc.org
>> [mailto:owner-ti-math@lists.ticalc.org]On Behalf Of Víctor Manuel Ropero
>> Martín
>> Sent: Saturday, May 27, 2000 1:19 AM
>> To: ti-math@lists.ticalc.org
>> Subject: 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
>> > > > >
>> > > > >
>> > > > >
>> > >
>> > >
>> > >
>> > >
>>
>>
>>
>
>
>
References: