Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread R.E. Boss
Perhaps you should incorporate it in Bron's http://www.jsoftware.com/jwiki/PrimitivePrimitives R.E. Boss > -Oorspronkelijk bericht- > Van: [email protected] > [mailto:[email protected]] Namens June Kim (???) > Verzonden: vrijdag 31 august

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Zsbán Ambrus
On Fri, Aug 31, 2012 at 10:05 AM, R.E. Boss wrote: > Perhaps you should incorporate it in Bron's > http://www.jsoftware.com/jwiki/PrimitivePrimitives You'd need a more complicated phrase there, something that supports a higher rank y argument in (x e. y). Ambrus ---

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Raul Miller
On Fri, Aug 31, 2012 at 8:20 AM, Zsbán Ambrus wrote: > On Fri, Aug 31, 2012 at 10:05 AM, R.E. Boss wrote: >> Perhaps you should incorporate it in Bron's >> http://www.jsoftware.com/jwiki/PrimitivePrimitives > > You'd need a more complicated phrase there, something that supports a > higher rank

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Devon McCormick
I recently noticed this about " e. " but can't decide whether or not it's a bug: 0 e. i. 2 2 0 i. 2 2 NB. I'm pretty sure zero is in there... 0 1 2 3 0 e.~ i. 2 2 1 0 0 0 On Fri, Aug 31, 2012 at 8:20 AM, Zsbán Ambrus wrote: > On Fri, Aug 31, 2012 at 10:05 AM, R.E. Boss wrote: >> Pe

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread km
The elements of i. 2 2 are 0 1 and 2 3 . Sent from my iPad On Aug 31, 2012, at 8:38 AM, Devon McCormick wrote: > I recently noticed this about " e. " but can't decide whether or not it's a > bug: > > 0 e. i. 2 2 > 0 > i. 2 2 NB. I'm pretty sure zero is in there... > 0 1 > 2 3 > 0 e

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Raul Miller
That's how it's supposed to work. none of the items (well.. just one item) of 0 is an item of i.2 2 Try this: boxitems=: <"_1 0 =/&boxitems i. 2 2 FYI, -- Raul On Fri, Aug 31, 2012 at 9:38 AM, Devon McCormick wrote: > I recently noticed this about " e. " but can't decide whether or

[Jprogramming] Text on a Graph

2012-08-31 Thread Linda Alvord
This code produces a random point at integral values from 1 to 3. I would like to chose a font and size and replace the "dot" with the letter A. Any ideas? load 'plot' pd 'reset' pd'aspect 1' pd 'type line' ]P=:0 1 3 2 0{"1(4*|:#:i.4),.0 pd (<"1)P pd 'type marker' pd (<"1)1+?1 2$3 pd '

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Devon McCormick
I guessed this made some sense I wasn't seeing, with the rank of " e. " being _ rather than 1 as I thought. 0 1 e. i.2 2 1 On Fri, Aug 31, 2012 at 9:43 AM, Raul Miller wrote: > That's how it's supposed to work. > > none of the items (well.. just one item) of 0 is an item of i.2 2 > > Try thi

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Roger Hui
That x∊y in APL acts as if x∊,y is "original sin" from APL\360, and is an obstacle to extending the definition of ⍳ (i. in J) to higher-ranked left arguments. In modelling e. you can not just apply <"_1 to both arguments. You can apply <"r where r is <:#$y, but the left argument can have rank > 1

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Raul Miller
Oh, good point. So... my =/&boxitems should have been: demo=:4 :0 boxitems=. <"(<:#y) x =/&boxitems y ) 0 demo i.2 2 Thanks, -- Raul On Fri, Aug 31, 2012 at 11:22 AM, Roger Hui wrote: > That x∊y in APL acts as if x∊,y is "original sin" from APL\360, and is an > obstacle to extendin

Re: [Jprogramming] emulating e. with +/ and =/

2012-08-31 Thread Roger Hui
You want =/&:boxitems instead of =/&boxitems. On Fri, Aug 31, 2012 at 10:14 AM, Raul Miller wrote: > Oh, good point. > > So... my =/&boxitems should have been: > > demo=:4 :0 >boxitems=. <"(<:#y) >x =/&boxitems y > ) > >0 demo i.2 2 > > Thanks, > > -- > Raul > > On Fri, Aug 31, 201