Re: Bug ???
- To: mathgroup at smc.vnet.net
- Subject: [mg81810] Re: Bug ???
- From: Jean-Marc Gulliet <jeanmarc.gulliet at gmail.com>
- Date: Thu, 4 Oct 2007 04:18:32 -0400 (EDT)
- Organization: The Open University, Milton Keynes, UK
- References: <200710020928.FAA28247@smc.vnet.net> <200710030635.CAA29450@smc.vnet.net> <fdvra7$qrb$1@smc.vnet.net>
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 <snip> A single equal sign, =, sets the value of the LHS. A double equal sign, ==, tests for equality. Evaluating a = {}; Do[k = n^2 - (Floor[n^2 (2/3)])^2; If[k == 0, AppendTo[a, {k, n^2}]], {n, 1, 1000}]; a returns {{0, 4}} Regards, -- Jean-Marc
- 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>
- help with polynomial solutions