[Jprogramming] Frensel plot

2017-07-19 Thread Raul Miller
load'plot' plot ((2&o.@*:t.i.100)&p.d._1;(1&o.@*:t.i.100)&p.d._1) 1p1*i:1j1000 This has two domain error workarounds which might interest people. First, i:1p1j1000 does not work, but 1p1*i:1j1000 does. In other words, i: has a gaussian integer domain (perhaps because that is simpler to docu

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-19 Thread Raul Miller
That also. But my point was that the "first class verb" concept being discussed was a different one from the gerund use that you were documenting. Thanks, -- Raul On Wed, Jul 19, 2017 at 10:20 PM, Louis de Forcrand wrote: > Sorry; I did digress from multiple assignment. > > Louis > >> On 19

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-19 Thread Louis de Forcrand
NB. tacit run=: upd rec upd=: [ ((({~ 0{::]) + 1{::])`(0{::])`[} - 2{::]) ~.@] ; ] (+//. ; ]) 1 <: [ NB. explicit RUN=: UPD rec UPD=: 4 : 0 b -~ x u}~ (x {~ u=. ~.y) + y +//. b=. x >: 1 ) rec=: ((] + ] >: i.@[) (?@$ <:))@# Slower on short vectors, faster on larger ones (j805): 1e2 ts 't

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-19 Thread Louis de Forcrand
Sorry; I did digress from multiple assignment. Louis > On 19 Jul 2017, at 09:31, Raul Miller wrote: > > I believe that this discussion was about something different. > > Thanks, > > -- > Raul > >> On Wed, Jul 19, 2017 at 3:45 AM, Louis de Forcrand wrote: >> K supports first-class verbs; on

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-19 Thread Rob Hodgkinson
Thanks Mike it formats and reads perfectly… nice job, Rob > On 20 Jul 2017, at 8:02 am, 'Mike Day' via Programming > wrote: > > This took me much longer than a lunch-break, partly because we > were away in France, and I was experimenting with J701 on my > iPad when Liz would let me. > > I ca

[Jprogramming] Morgoth's Crown Challenge

2017-07-19 Thread Devon McCormick
No, it's not a video game even if it sounds like it. It's a crowd-sourced initiative from IARPA to improve recognition of compounds based on their IR signature. You need a topcoder.com login to register, which I have which is how I got the email. This is a more detailed intro to what they're try

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-19 Thread 'Mike Day' via Programming
This took me much longer than a lunch-break, partly because we were away in France, and I was experimenting with J701 on my iPad when Liz would let me. I came up with a number of variants, of which the following is best. It's slower and uses more space than Raul's for small problem-sizes, but i

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-19 Thread bill lam
J does have a gnuplot addon available for over 10 years if my memory serves me. Ср, 19 июл 2017, Rudolf Sykora написал(а): > On 17 July 2017 at 19:10, chris burke wrote: > > There is no obvious workaround, so you might have to accept the current > > behaviour. > > Eventually, I decided to edit t

Re: [Jprogramming] unexpected behaviour of penstyles in plot

2017-07-19 Thread Rudolf Sykora
On 17 July 2017 at 19:10, chris burke wrote: > There is no obvious workaround, so you might have to accept the current > behaviour. Eventually, I decided to edit the postscript file to get the dashed-line effect, and also to obtain axes' labels with mixed symbol/italic/normal/subscript characters

Re: [Jprogramming] reset colours in plot

2017-07-19 Thread Rudolf Sykora
On 18 July 2017 at 15:38, chris burke wrote: > load 'plot' > 'dat1 dat2 dat3'=. 10 #&> each 1 2 3;4 5 6 7;8 9 > clr1=: (#dat1) {. STDCLR_jzplot_ > clr2=: (#dat2) {. STDCLR_jzplot_ > clr3=: (#dat3) {. STDCLR_jzplot_ > pd 'itemcolor ',":,clr1,clr2,clr3 > pd 'pensize 5' > pd dat1 > pd dat2 > pd dat3

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-19 Thread Raul Miller
I believe that this discussion was about something different. Thanks, -- Raul On Wed, Jul 19, 2017 at 3:45 AM, Louis de Forcrand wrote: > K supports first-class verbs; one can make an array of verbs, index one out, > and apply it to something using the same syntax as for normal function > ap

Re: [Jprogramming] Request for comments: multiple assignment

2017-07-19 Thread Louis de Forcrand
K supports first-class verbs; one can make an array of verbs, index one out, and apply it to something using the same syntax as for normal function application. This is feasable in J, but only by using a special "apply" verb (perhaps gurus know another way?). Not trying to go full tacit, apply=