Re: [Jprogramming] function within function; scope

2020-03-24 Thread rsykora
Dear Raul and Henry thank you for your comprehensive list of ideas and explanation. It helped. Ruda March 20, 2020 11:22 PM, "Raul Miller" wrote: > There are several ways to accomplish what I think you're asking for: > > Algebraic simplification: > g=:3 :0 > -y > ) > > Pass the intermediat

Re: [Jprogramming] crash

2020-03-24 Thread Rudolf Sykora
bill lam writes: > You seemed also got the error box for some invalid input, but then it > crashed after 2 seconds. This is weird I don't know why. Is there anything I can do to diagnose the issue? Ie., run the command like plot 1 2 ; 3 4 5 expecting that it is going to fail, but put some

Re: [Jprogramming] crash

2020-03-24 Thread Henry Rich
When I ran this, I got a crash.  But I know I am running a mongrel system, with old JQt and unreleased JE.  Since others report no error, perhaps that's our problem?  You could try making sure your JQt is up to date. I did look into it a little, and you could do the same.  This is what I did

Re: [Jprogramming] crash

2020-03-24 Thread Rudolf Sykora
Dear Henry, Henry Rich writes: > > I did look into it a little, and you could do the same. This is what I > did (in JQt): > > plot 1 2 ; 3 4 5 > crash - before the crash a dialog about length error in getgrafmat. > Indeed, the arguments have incorrect length. > load 'plot' > open

Re: [Jprogramming] crash

2020-03-24 Thread Devon McCormick
Hi - I did this: load 'plot' 13!:0]1 NB. Enable debugging plot 1 2;3 4 5 |length error: getgrafmat | ,"2(getgrafx x),."1 citemize getgrafy y |getgrafmat[1] y 3 4 5 x 1 2 13!:0]10 NB. turn off debugging So, this is a legitimate error caused by the b

Re: [Jprogramming] crash

2020-03-24 Thread Devon McCormick
Sorry - typo. Last line of J should have been 13!:0]0 NB. turn off debugging On Tue, Mar 24, 2020 at 5:38 PM Devon McCormick wrote: > Hi - I did this: >load 'plot' >13!:0]1 NB. Enable debugging >plot 1 2;3 4 5 > |length error: getgrafmat > | ,"2(getgrafx x

Re: [Jprogramming] crash

2020-03-24 Thread Henry Rich
We are wondering why it crashes J on some systems. Henry Rich On 3/24/2020 6:51 PM, Devon McCormick wrote: Sorry - typo. Last line of J should have been 13!:0]0 NB. turn off debugging On Tue, Mar 24, 2020 at 5:38 PM Devon McCormick wrote: Hi - I did this: load 'plot'

Re: [Jprogramming] Iteration

2020-03-24 Thread Don Kelly
(5#6)?55 42 16 14 29 38 25 14 37 22 4 54 6 47 51 35 32 26 45 13 53 10 29 3 15 21 8 20 45 30 52 Don Kelly On 2020-03-23 5:47 p.m., 'Jim Russell' via Programming wrote: Who do I thank tor this? It is a particularly clear and helpful exclamation. Thank you! On Mar 13, 2020, at 3:56 AM,

Re: [Jprogramming] Iteration

2020-03-24 Thread Julian Fondren
5 6 ?@$ 55 52 3 9 16 4 3 26 30 24 34 30 50 46 51 16 19 26 26 20 46 12 50 39 27 3 39 45 46 46 33 :) This actually isn't the same result as your code, though. (4#2) ? 2 0 1 0 1 0 1 1 0 1 1 i.~ (1e6#2) ? 2 100 0 0 i.~ (1e6#2) ? 2 100 There are never any 1 1 or 0 0 results

Re: [Jprogramming] Iteration

2020-03-24 Thread Don Kelly
I see your point.  actually x?y  (deal as in the vocabulary) doesn't allow repetitions. An analogy is dealing a hand of cards where you will never (legally) have 2 aces of spades . hence, with 2 cards 1 and 0, you can't get 1 1 . If you have 2 cards each having a 1  and 0 you can get  your resu

Re: [Jprogramming] Iteration

2020-03-24 Thread Skip Cave
The original requirement was to have the integers in each set of 6 be unique in that set. Zeros are OK. Skip > > -- For information about J forums see http://www.jsoftware.com/forums.htm