I think you understand it correctly.
You seem disturbed that there is no distinction in the
display. Some languages do, by putting {} around each
list, in which case i. 1 2 would be
{ { 0 1 } }
and i. 2 would be
{ 0 1 }
but J doesn't do that. J's way seems better ro me, since you
could always write a verb to add the {} if you wanted to.
You can't see the leading unit axes, no matter how many there are:
i. 1 1 1 1 1 2
0 1
Henry Rich
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Brannon
> Sent: Thursday, April 12, 2007 2:28 PM
> To: General forum
> Subject: [Jgeneral] please help me get 100% clear on 'i. 1 2'
> versus '0 1'
>
> First, some J:
>
> rank2 =: i. 1 2
> rank1 =: 0 1
> rank2
> 0 1
> rank1
> 0 1
> [EMAIL PROTECTED] rank2
> 2
> [EMAIL PROTECTED] rank1
> 1
>
>
> 1 - cartesian coordinate system - rank1 would be represented on a
> number line, while rank2 would be represented on a x-y graph.
>
> 2 - visual - J makes no visual distinction between these two things -
> they look the same on your screen. I'm disturbed by this.
>
> 3 - memory requirements - I think the equivalent C language
> data structures are:
> rank2[1][2]
> rank1[2]
>
> Is that correct?
>
> 4 - items - rank2 has one item. It is a 2-element "list" (better
> word?). rank1 has 2 items. They are the atoms 1 and 2.
>
>
> Why did I write this post? To get as much guidance, feedback, etc as
> possible. It is very important to be clear on what is what in J and
> when I type two different things and in fact create two different
> things, but they look the same, I really need to be clear on how they
> differ and why.
>
> Any and all feedback welcome.
> ----------------------------------------------------------------------
> For information about J forums see
> http://www.jsoftware.com/forums.htm
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm