Re: Bug ???
- To: mathgroup at smc.vnet.net
- Subject: [mg81814] Re: [mg81805] Bug ???
- From: Sseziwa Mukasa <mukasa at jeol.com>
- Date: Thu, 4 Oct 2007 04:20:36 -0400 (EDT)
- References: <200710020928.FAA28247@smc.vnet.net> <200710030635.CAA29450@smc.vnet.net> <200710031034.GAA27140@smc.vnet.net>
On Oct 3, 2007, at 6:34 AM, 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 Equality is == not =, the If statement in your first expression is not going to evaluate as you expect. Regards, Ssezi
- References:
- help with polynomial solutions
- From: "Jules P. Aronson" <aronson@nlm.nih.gov>
- Re: help with polynomial solutions
- From: Andrzej Kozlowski <akoz@mimuw.edu.pl>
- Bug ???
- From: Artur <grafix@csl.pl>
- help with polynomial solutions