MathGroup Archive 2011

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

Search the Archive

Re: Span Set nasty bug

  • To: mathgroup at smc.vnet.net
  • Subject: [mg123743] Re: Span Set nasty bug
  • From: DrMajorBob <btreat1 at austin.rr.com>
  • Date: Sat, 17 Dec 2011 02:43:45 -0500 (EST)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • References: <201112161054.FAA07002@smc.vnet.net>
  • Reply-to: drmajorbob at yahoo.com

Bug.

Bobby

On Fri, 16 Dec 2011 04:54:36 -0600, roby <roby.nowak at gmail.com> wrote:

> Dear group & Mathematica team
>
> I am trying to assign a non existing element member of a 2D List.
> Due to the coosen Span the element should not exist respectivly not be
> assigned.
> when the non existing element is queried e.g. {} should be returned
>
> please take a look on the following assignment:
>
> In[43]:= t = Table[0, {15}, {15}];
> t[[1 ;; 0, 1 ;; 1]] = 1;
> t[[1 ;; 0, 1 ;; 1]]
> t[[1, 1]]
>
> Out[45]= {}
>
> Out[46]= 0
>
> so far so good no element gets assigned and the query works,
> after changing 15 to 16 or greater the query still works but  the
> following happens element [[1,1]] gets a value assigned:
>
> In[47]:= t = Table[0, {16}, {16}];
> t[[1 ;; 0, 1 ;; 1]] = 1;
> t[[1 ;; 0, 1 ;; 1]]
> t[[1, 1]]
>
> Out[49]= {}
>
> Out[50]= 1
>
> Is this a bug or is it a feature ?
>
>


-- 
DrMajorBob at yahoo.com



  • Prev by Date: Re: variable amount of Interpolation points
  • Next by Date: Re: Table constructed from two lists
  • Previous by thread: Span Set nasty bug
  • Next by thread: Re: Span Set nasty bug