|
[Date Index]
[Thread Index]
[Author Index]
RE: Bug ???
Try with k==0 instead of k=0. I think we all have mixed up Equal(==) and
Set(=) at some occasion.
Best regards
Ingolf Dahl
-----Original Message-----
From: Artur [mailto:grafix at csl.pl]
Sent: 03 October 2007 12:34
To: mathgroup at smc.vnet.net
Subject: [mg81845] [mg81805] Bug ???
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:
Can Integrate[expr,{x,a,b}] give an incorrect result?
Next by Date:
Functions with data hidden in them
Previous by thread:
Re: Bug ???
Next by thread:
Re: Bug ???
|