Re: [Jprogramming] datetime addin not working

2014-10-25 Thread Tikkanz
Agreed. I was able to load and run the test script successfully in both j64 8.02 and 8.03. load 'types/datetime' load 'types/datetime/test/test_datetime' test_datetime passed We will need more information to help. On Sun, Oct 26, 2014 at 3:53 PM, chris burke wrote: > I don't see a

Re: [Jprogramming] count of consecutive 1s

2014-10-25 Thread 'Bo Jacoby' via Programming
Isn't ([*[+])/\. 1 0 1 1 1 0 1 the same as ([*+)/\. 1 0 1 1 1 0 1 ? Den 21:10 torsdag den 23. oktober 2014 skrev Joe Bogner : > > >This can also answer the question in a backwards, slower sense: > >([*[+])/\. 1 0 1 1 1 0 1 > > >1 0 3 2 1 0 1 > > > >On Wed, Oct 22, 2014 at 2:12 PM, R.

Re: [Jprogramming] Minimum Spanning Tree, J and Prim's Algorithm

2014-10-25 Thread Kip Murray
See the following (20. Directed Graphs) from the Dictionary http://www.jsoftware.com/docs/help801/dictionary/samp20.htm --Kip Murray On Friday, October 24, 2014, Jon Hough wrote: > Finding the minimum spanning tree of a graph is (in theory) pretty easy. > I wanted to see if I could write Prim'

Re: [Jprogramming] datetime addin not working

2014-10-25 Thread chris burke
I don't see any obvious problem with datetime. What did you try, and with what result? On Sat, Oct 25, 2014 at 8:30 AM, Kyle M. Rudden < kyle.rud...@kr-consulting.com> wrote: > I wanted to convert some Excel dates to J, and some other functionality > found in the datetime addin, but can't seem t

Re: [Jprogramming] An easy Euler Project one (485)

2014-10-25 Thread 'Pascal Jasmin' via Programming
some math behind it, for 1e5 S y, 1763199 is the maximum y for which 11 is a sufficient prime. q: >: 1e5 -~ 1763200 + 7559 2 2 2 3 3 3 5 7 13 17 this is a d of 256, but boosts the S total by 4, and requires 13. For this difference of 4, the number of d 1e5 less than the max range must be

Re: [Jprogramming] An easy Euler Project one (485)

2014-10-25 Thread Mike Day
Wow! 31 is a sufficient maximum for the full Problem 485; 29 isn't. (Trial and error, not mathematical analysis!!!) It takes about 27 seconds with 31 as maximum prime compared to the 45 seconds using all primes <: %: n . Cheers, Mike PS I played around with that "sliding window" article I c

Re: [Jprogramming] An easy Euler Project one (485)

2014-10-25 Thread 'Pascal Jasmin' via Programming
combined our approaches with a simple modification to dsieve add 2 lines to top of function: ( %: y) dsieve y : change the while line to: while. p <: x do. for 1e5 S 4e8, you do not need to look at primes higher than 13, and so this runs in 9 seconds timespacex '10 ([: +/ >./\) 13

[Jprogramming] datetime addin not working

2014-10-25 Thread Kyle M. Rudden
I wanted to convert some Excel dates to J, and some other functionality found in the datetime addin, but can't seem to get the addin to work. It lists as installed, and I have also installed the "numeric" addin it called for . No problems with other standard addins. I took the MS0Date value I wan

Re: [Jprogramming] Lapack on J80x qt on Mac running Yosemite

2014-10-25 Thread bill lam
It should be pre-installed in osx, perhaps its path changed in yosemite. try locate the library and amend the " dll=: ... " line in lapack.ijs . On Oct 25, 2014 9:42 PM, "Piet de Jong" wrote: > So how is the shared dll library installed? > > Help is much appreciated. > > > > On 25 Oct 2014, at 10

Re: [Jprogramming] Lapack on J80x qt on Mac running Yosemite

2014-10-25 Thread Piet de Jong
So how is the shared dll library installed? Help is much appreciated. > On 25 Oct 2014, at 10:06 pm, bill lam wrote: > > lapack expect a shared library existed in > > dll=: '/System/Library/Frameworks/vecLib.framework/vecLib ' > > lapack addon itself does not install any binary lapack lib

Re: [Jprogramming] Lapack on J80x qt on Mac running Yosemite

2014-10-25 Thread bill lam
lapack expect a shared library existed in dll=: '/System/Library/Frameworks/vecLib.framework/vecLib ' lapack addon itself does not install any binary lapack lib to Mac. I suspect if it failed in j80x it will also fail in older versions of J. Сб, 25 окт 2014, Piet de Jong написал(а): > I did

[Jprogramming] Lapack on J80x qt on Mac running Yosemite

2014-10-25 Thread Piet de Jong
I did clean installs of 801 802 and 803 qt for Mac. Also installed the Lapack. All fail to run the Lapack Studio>Lab>Lapack at step 6 where it attempts to compute eigenvalues/eigenvectors. It objects to the "cd" command. Any help gratefully received. -

Re: [Jprogramming] An easy Euler Project one (485)

2014-10-25 Thread Mike Day
FWIW, I've finally cracked the minute for the full problem using the improved sieve below. It takes about 45 sec on my laptop. 3 points: 0) Problem 485 solvers' discussion reveals this discussion about maxima in a sliding window: http://richardhartersworld.com/cri/2001/slidingmin.html I doubt if