MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Bug ???

  • To: mathgroup at smc.vnet.net
  • Subject: [mg81817] Re: Bug ???
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 4 Oct 2007 04:22:08 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <200710020928.FAA28247@smc.vnet.net> <200710030635.CAA29450@smc.vnet.net> <fdvra7$qrb$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

because Set[]  "=" is not the same as Equal[] "=="
Regards
   Jens

Artur wrote:
> Why doesn't work:
> a={};Do[k=n^2-(Floor[n^2(2/3)])^2;If[k=0,
> AppendTo[a,{k,n^2}]],{n,1,1000}];a
> but working
> a={};Do[k=n^2-(Floor[n^2(2/3)])^2;If[k<1,
> AppendTo[a,{k,n^2}]],{n,1,1000}];a
> 
> Artur Jasinski, Poland
> 
> 


  • Prev by Date: Re: Bug ???
  • Next by Date: Re: Bug ???
  • Previous by thread: Re: Bug ???
  • Next by thread: Re: Bug ???