Re: Bug ???
- To: mathgroup at smc.vnet.net
- Subject: [mg81807] Re: Bug ???
- From: Alois Steindl <Alois.Steindl at tuwien.ac.at>
- Date: Thu, 4 Oct 2007 04:16:54 -0400 (EDT)
- Organization: Inst. f. Mechanics II, TU Vienna
- References: <200710020928.FAA28247@smc.vnet.net> <200710030635.CAA29450@smc.vnet.net> <fdvra7$qrb$1@smc.vnet.net>
Artur <grafix at csl.pl> writes: > 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 Hello, "k=0" in the first command is an assignment, ("k==0" would be a comparison) whereas "k<1" is a comparison. Alois
- 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