Re: [Jprogramming] Explanation for sentence needed

2019-05-05 Thread 'Rob Hodgkinson' via Programming
Hi Thomas, apologies for the length here, but you have asked a good question. The operation to compose one verb with another is known as “atop” (as defined on Pages 12 and 17 in the Arithmetic paper you are reading)… (this is called function composition in linear algebra). In 2002 I believe thi

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread Linda Alvord
Thanks David, Good explanations. Just last week, it dawned on me that there are four different meanings of [ , [ , ] and ] . That makes tacit to explit more challenging . Linda Sent from my Verizon, Samsung Galaxy smartphone Original message From: David Lambert Date

Re: [Jprogramming] Explanation for sentence needed

2019-05-05 Thread Thomas Bulka
Am 05.05.2019 21:56 schrieb Henry Rich: i.&1@< is not useful.  Probably you mean i.&1@:< Henry Rich Hello Henry, indeed I meant i.&1@< - it was given in the book I mentioned as an example. I do see the point of i.&1@:< though, which definitely does seem more useful. Regards, Thomas

Re: [Jprogramming] Explanation for sentence needed

2019-05-05 Thread Henry Rich
i.&1@< is not useful.  Probably you mean i.&1@:< Henry Rich On 5/5/2019 3:41 PM, Thomas Bulka wrote: Am 05.05.2019 20:52 schrieb Roger Hui: When applied dyadically, the verb finds the index of the first place where x is less than y The verb is not very meaningful when applied monadically.

Re: [Jprogramming] Explanation for sentence needed

2019-05-05 Thread Thomas Bulka
Am 05.05.2019 20:52 schrieb Roger Hui: When applied dyadically, the verb finds the index of the first place where x is less than y The verb is not very meaningful when applied monadically. Hello Roger, thank you very much for your quick reply. I think I got it now. But, just a follow-up que

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread Linda Alvord
Thanks Bob, Actually, mine is and adverb and yours is a verb! f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[ f=: 13 : 4!:0 <'f' 1 g=: 4 : '(0 ,.~ 0 ,. 0 ,~ 0 , ])^:x y' 4!:0 <'g' 3 (3 g i.3 4)-:3 g i.3 4 1 Linda -Original Message- From: Programming On Behalf Of

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread 'Mike Day' via Programming
Thanks - as long as you're aware of the feature!!! Mike On 05/05/2019 17:11, Eric Iverson wrote: Mike, Jd is developed by a team with a git repo. It is updated many times between pacman releases. I gave up trying to sync pacman versions with git versions with Jd wiki updates. The one that coun

Re: [Jprogramming] Explanation for sentence needed

2019-05-05 Thread Roger Hui
When applied dyadically, the verb finds the index of the first place where x is less than y The verb is not very meaningful when applied monadically. On Sun, May 5, 2019 at 11:31 AM Thomas Bulka wrote: > Hello everyone, > > currently I work my way through Iverson's book on arithmetic, because >

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread David Lambert
Task: write f explicitly. f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[ We try substituting x and y for [ and ] .    g=: 13 :'(0 ,.~ 0 ,. 0 ,~ 0 , y)^:x'    2 g i. 2 3 |domain error: g |   (0,.~0,.0,~0,y)    ^:x We see failure with power. We look up power in NuVoc [x] u^:n y     Fixed Power     Conjunction

[Jprogramming] Explanation for sentence needed

2019-05-05 Thread Thomas Bulka
Hello everyone, currently I work my way through Iverson's book on arithmetic, because I'm interested in how J works as a mathematical notation. However, in exercise B2 (Chapter 3), I struggle with a sentence, given as part of the exercise: cl =: i.&1@< It seems to do the same as this senten

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread 'Jim Russell' via Programming
Your link to https://www.jsoftware.com/jd_tuts.html is very through, useful, and deserves some serious study. (Wish I thought I was up to it!) Very nice job. > On May 4, 2019, at 6:07 PM, Eric Iverson wrote: > > Jd version 4.24 is available > > https://code.jsoftware.com/wiki/Jd/Release for

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread Eric Iverson
Mike, Jd is developed by a team with a git repo. It is updated many times between pacman releases. I gave up trying to sync pacman versions with git versions with Jd wiki updates. The one that counts is the result of jd'list version' and the docs in Jd wiki. On Sun, May 5, 2019 at 4:15 AM 'Mike Da

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread Louis de Forcrand
Doh. padop can easily be a verb: pad=: ];.0@((+$) {. ])^:2 2 1 pad&.> (i.2 3); i.2 2 2 +-+---+ |0 0 0 0 0 0 0|0 0 0 0| |0 0 0 0 0 0 0|0 0 0 0| |0 0 0 1 2 0 0|0 0 0 0| |0 0 3 4 5 0 0|0 0 0 0| |0 0 0 0 0 0 0| | |0 0 0 0 0 0 0|0 0 0 0| | |0 0 1 0| |

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread Louis de Forcrand
Hi, Not exactly an answer to the question, but rather a cute way to pad an array of any rank using a cool feature of ;. cut that I ran into today. From the dictionary: u;.0 y applies u to y after reversing y along each axis; it is equivalent to (0 _1 */$y) u;.0 y . Using this: padop=: &((+

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread Linda Alvord
Thanks about Jd. However, I want to encourage new J users to install and use it on phones and laptops. I wish Download was easy to access for non-forum users. (That nay come later.) Linda Sent from my Verizon, Samsung Galaxy smartphone Original message From: bill lam D

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread bill lam
The "real" Jd version is reported by jd'list version' 4.24 Sun, 05 May 2019, jprogramming написал(а): > Linda, Jd isn't the same as J;   quoting from Package Manager's footnote, > > it's a "commercial database product" which requires a licence-fee.  You can > > both install and update it usin

Re: [Jprogramming] Jd version 4.24 is available

2019-05-05 Thread 'Mike Day' via Programming
Linda, Jd isn't the same as J;   quoting from Package Manager's footnote, it's a "commercial database product" which requires a licence-fee.  You can both install and update it using Tools/Package Manager. You can then do:    load'jd'    NB. my typing, followed by two-line output: !!! Jd key:

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread 'robert therriault' via Programming
Hi Linda, I think that the trick is that the left operand for ^: needs to be a verb. this seems to work. f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[ 1 f i. 3 4 0 0 0 0 0 0 0 0 1 2 3 0 0 4 5 6 7 0 0 8 9 10 11 0 0 0 0 0 0 0 g=: 4 : '(0 ,.~ 0 ,. 0 ,~ 0 , ])^:x y' 1 g i. 3 4 0 0 0 0 0 0 0 0

Re: [Jprogramming] ambivalent tacit verb with Self-Reference

2019-05-05 Thread Linda Alvord
Here's a simple function: f=:(0 ,.~ 0 ,. 0 ,~ 0 , ])^:[ 3 f i.3 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 2 3 0 0 0 0 0 0 4 5 6 7 0 0 0 0 0 0 8 9 10 11 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 But, oddly, I can't