Re: [Jprogramming] Request for comments: multiple assignment

2017-07-10 Thread Don Kelly
Thank you. I have, since about 1961, dealt with computer languages from MAD (Michigan Algorithmic Decoder) through Fortran, early Basic, turbo Basic, Pascal, C++ and APL*Plus then J . The earlier languages were compiled and the compilers used "assembly" code. C and its relatives, as far as

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Raul Miller
Oops, I did not think about that "reflexive giving" wart. Here's a fix for my version: tick=: (0 >. <:) + i.@# +/@:(=/)~ I.@:* (] + <:) +/@:* ?@# <:@# require 'stats' stddev"1 tick^:(i.10) 45#45 0 0.977008 1.18705 1.73205 2.01133 2.15322 2.46798 2.86832 2.97719 3.1334 tick^:1]20#2

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread 'Pascal Jasmin' via Programming
The number of $ available each round is the number of people with >&0. The number of potential recipients is the population. This simplification though means its possible for someone to pay himself. A correction to your version, /:~@(-&1`]@.(=&0)"0 (#/.~@] + ~.@]{[)`(~.@])`[} >&0 # (?@#~@#

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Devon McCormick
His narration states Quote: “Imagine a room full of 100 people with 100 dollars each. With every tick of the clock, every person with money gives a dollar to one randomly chosen other person. After some time progresses, how will the money be distributed?” And I came up with this simulation. (45 p

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Raul Miller
Why do you think that? Or were you referring to Xiao-Yong Jin's narrative? Thanks, -- Raul On Mon, Jul 10, 2017 at 5:17 PM, Devon McCormick wrote: > So, you start with $10,000 (=100*$100) but end up with $2,025 (=45*$45), > how? > > On Mon, Jul 10, 2017 at 3:59 PM, Raul Miller wrote: > >> I

Re: [Jprogramming] LBFGS addon

2017-07-10 Thread Devon McCormick
You may also be interested in this, a purely J implementation of the Levenberg-Marquardt nonlinear least-squares optimization: http://code.jsoftware.com/wiki/NYCJUG/2010-11-09/Levenberg-MarquardtAlgorithm . On Tue, Jun 27, 2017 at 7:57 PM, Bill wrote: > Can you get the C source and compile it fo

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Devon McCormick
So, you start with $10,000 (=100*$100) but end up with $2,025 (=45*$45), how? On Mon, Jul 10, 2017 at 3:59 PM, Raul Miller wrote: > I don't really understand what you mean by "mean expectations" - could > you describe the intent there? > > That said, here's how far I've gotten in implementing th

Re: [Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Raul Miller
I don't really understand what you mean by "mean expectations" - could you describe the intent there? That said, here's how far I've gotten in implementing this concept: tick=: (0 >. <:) + i.@# +/@:(=/)~ +/@:* ?@# # (mean,stddev)"1 tick^:(i.10)]100#100 1000 100 0.932034 100 1.41421

[Jprogramming] Everyone giving dollars to random others

2017-07-10 Thread Xiao-Yong Jin
I thought this is a good lunch break exercise. http://www.decisionsciencenews.com/2017/06/19/counterintuitive-problem-everyone-room-keeps-giving-dollars-random-others-youll-never-guess-happens-next/ Quote: “Imagine a room full of 100 people with 100 dollars each. With every tick of the clock, ev

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-10 Thread Ian Clark
Thanks, Devon. Actually I've come across a few over the years. But their authors don't go noising them about. :-) Ian On Mon, Jul 10, 2017 at 2:24 PM, Devon McCormick wrote: > BTY - I think it's really cool there's a Mac app using J but I don't really > work in that space myself. > > On Sun, J

Re: [Jprogramming] What is the function of the folder: ~user/J64-805-user/snap ?

2017-07-10 Thread Devon McCormick
BTY - I think it's really cool there's a Mac app using J but I don't really work in that space myself. On Sun, Jul 9, 2017 at 12:22 PM, Björn Helgason wrote: > start jhs onandroid > >load'jhs' >init_jhs_'' > > go browser > > http://127.0.0.1:65001/jijx > > On 9 Jul 2017 13:55, "Brian Sch