[Jprogramming] Compatibility report

2017-09-16 Thread Joey K Tuttle
Not surprising, but jconsole, and jqt work just fine in OS X 10.13 (High Sierra). Also reporting good news that J701 runs fine in iOS 11. Looking forward to seeing/doing some benchmarks on the new iPhones. Love the *2 improvement in j806 vs j805 in OS X. --

Re: [Jprogramming] Puzzling result

2017-09-16 Thread Don Guinn
In the context you are using residue it is an error. But in J it is not an error. Before J64 the automatic promotion of boolean to integers, integers to float was completely safe as integers were a proper subset of float. Not any more. Floating point is not good for many mathematical problems, pa

Re: [Jprogramming] Quora Challenge

2017-09-16 Thread Erling Hellenäs
Hi all ! My submission, see below. Cheers, Erling Hellenäs RangeIndex=: ([ + [: i. ] - [) , ] 3 RangeIndex 11 NB. 3 4 5 6 7 8 9 10 11 8 RangeIndex 10 NB. 8 9 10 Primes=: (1 p: ]) # ] Primes 3 4 5 6 7 8 9 10 11 NB. 3 5 7 11 Primes 8 9 10 NB. i.0 AddStartRangeIfNotThere=: (([ ~: 1 {. ])

Re: [Jprogramming] Quora Challenge

2017-09-16 Thread Louis de Forcrand
lnps=: 4 : 0 (i{p)+}.i.d{~i=. (i.>./)d=. 2-~/\p=. (<:x),(p:([+i.@-~)/_1 p:x,y),>:y ) Cheers, Louis > On 15 Sep 2017, at 18:24, Raul Miller wrote: > > Oh, oops... > > thru=: <. + i.@(+ *@+&0.5)@-~ > biggap=: {~ (0 1 + [: (i. >./) 2 -~/\ ]) > f=: [: thru/ 1 _1 + [: biggap <./ >. >./ <. thru&.(p: