Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2006
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Re: nonspurious bug report (probably PackedArray related)

  • To: mathgroup at smc.vnet.net
  • Subject: [mg64238] Re: nonspurious bug report (probably PackedArray related)
  • From: Bill Rowe <readnewsciv at earthlink.net>
  • Date: Tue, 7 Feb 2006 03:36:16 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

On 2/6/06 at 2:49 AM, dreeves at umich.edu (Daniel Reeves) wrote:

>Try the following with n < 100 and then with n >= 100. You'll see
>something goes drastically awry!

>Map[ReplacePart[{{1, 1}}, {#}, 1] &, Range[n]]

>The problem exists in (at least) version 5.2, both Windows and
>Linux.

There is also a problem with version 5.2 on Mac OS 10.4.4, i.e.,

In[34]:=
n = 99; 
({{#1}}&/@ Range[n]) == (ReplacePart[{{1, 1}}, {#1}, 1]&/@Range[n])
Out[35]=
True

In[36]:=
n = 100; 
({{#1}}&/@ Range[n]) == (ReplacePart[{{1, 1}}, {#1}, 1]&/@Range[n])
Out[37]=
False
--
To reply via email subtract one hundred and four


  • Prev by Date: (Off-Topic): Re: Re: FindFit and NormFunction
  • Next by Date: Re: Notebooks, packages, cells, and literate programming
  • Previous by thread: nonspurious bug report (probably PackedArray related)
  • Next by thread: notebook applications