Good catch! Thanks.

I was reviewing the lab and the results didn't look right. But they probably
are. For some reason there are three sections in the lab that are almost
identical and when I went to J6 I went to the wrong section to compare. Now
I need to look at the lab a little more closely and see why there are three
sections that look almost identical.

That's what I get for rushing.

On Thu, Feb 24, 2011 at 9:16 PM, Dan T. Abell <[email protected]> wrote:

> I should have added that I'm new to J (and this list),
> so of course I don't yet grasp the why, just the typo.
> ;-)
>
> Cheers,
>         -Dan
>
> On 24 Feb 2011, at 19:53, Dan T. Abell wrote:
>
> > Do you see the typo now?
> >  ]op =: (i. 2 0 4) ; (i. 0 2) ; ,6
> >  ]op =: (i. 2 0 4) ; (i. 0 2) ; 6
> >
> >       -Dan
> >
> > On 24 Feb 2011, at 19:45, Don Guinn wrote:
> >
> >> Testing the lab "An Introductory Course in J"  and noticed that the
> result
> >> was not the same in J6 and J7. Chapter 9 Section 10:
> >>
> >> J6 result:
> >>
> >>  ]op =: (i. 2 0 4) ; (i. 0 2) ; ,6
> >> ┌────┬──┬─┐
> >> │    │  │6│
> >> └────┴──┴─┘
> >>  ;op  NB. Result of raze
> >> 0 0 0 0
> >>
> >> 0 0 0 0
> >>
> >> 0 0 0 0
> >>
> >> 6 0 0 0
> >>  $ ;op  NB. The shape of the empty result
> >> 4 1 4
> >>
> >> J7 Result:
> >>
> >>  ]op =: (i. 2 0 4) ; (i. 0 2) ; 6   NB. The operand
> >> ┌────┬──┬─┐
> >> │    │  │6│
> >> └────┴──┴─┘
> >>  ;op  NB. Result of raze
> >>  $ ;op  NB. The shape of the empty result
> >> 4 0 4
> >> ----------------------------------------------------------------------
> >> For information about J forums see http://www.jsoftware.com/forums.htm
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to