Re: [Jprogramming] arithmetic sequence

2012-12-26 Thread Boyko Bantchev
On 27 December 2012 00:48, Bo Jacoby wrote: > Boyko wrote: "it holds for *all* lengths where extended numbers are needed, > i.e. practically always." It is not clear to me whether Boyko claims that > extended numbers are practically always needed. Yes, this is what I claim. And it is very clear

Re: [Jprogramming] Recurring holiday amusement

2012-12-26 Thread km
Linda, for Raul's e and recur, try 1&e recur 6 [ '' and +/ 1&e recur 10 [ '' comparing the latter with ^ 1 Kip Sent from my iPad On Dec 26, 2012, at 4:47 AM, "Linda Alvord" wrote: > Kip, Here are some samples: > > Not quite what you wanted from me: > > fibla=:[: +/\ |. > recur=:^:

Re: [Jprogramming] arithmetic sequence

2012-12-26 Thread Bo Jacoby
Boyko wrote: "it holds for *all* lengths where extended numbers are needed, i.e. practically always." It is not clear to me whether Boyko claims that extended numbers are practically always needed. - Bo > > Fra: Boyko Bantchev >Til: programm...@jsoftware.com

Re: [Jprogramming] Displaying multiple data within a box

2012-12-26 Thread David Ward Lambert
NB. one of many answers, all alike. NB. "little boxes" "all made out of ticky-tacky" NB. "all look just the same." [ A=: <"1 origdata ,. modvals NB. box rows of the stitched data +---+-+-+-++++++++++-+-+-++ |9 9|10 10|11

Re: [Jprogramming] Displaying multiple data within a box

2012-12-26 Thread Henry Rich
origdata ,:&.> modvals +-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ |9|10|11|12|13|14|15|16|17|18|19|20|21|22|23|24|25|26| |9|10|11|12| 1| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12| 1| 2| +-+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+ that's a little tricky. What it's really doing is:

[Jprogramming] Displaying multiple data within a box

2012-12-26 Thread PackRat
How does one get related data to display one above the other in a box? For example, let's use the data in my recent residue question: origdata=. 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26... modvals=. 9 10 11 12 1 2 3 4 5 6 7 8 9 10 11 12 1 2... How does one get the

Re: [Jprogramming] Residue without 0 remainder

2012-12-26 Thread PackRat
Thanks to Henry and all the others who posted possible solutions! Henry wrote: > I don't get what your 'offset' field is My use of this verb might have more general applications down the road, but my immediate need was for a sort of "month odometer" that could start with any month of a year (n

Re: [Jprogramming] Recurring holiday amusement

2012-12-26 Thread Raul Miller
9!:11]3 and 9!:11]4 give me more compact displays in J7. What were you trying, that did not work? Thanks, -- Raul On Wed, Dec 26, 2012 at 5:47 AM, Linda Alvord wrote: > Raul's e takes lots of space and I can't seem to change the precision for > 6 to 3 or 4 in j7. > >e recur (i.3)] 1 1 >

Re: [Jprogramming] Documentation in J REPL

2012-12-26 Thread Y-01
Very good. I would like to explore your shares) Links on shares to the studio! On Tue, Dec 25, 2012 at 7:42 PM, Joey K Tuttle wrote: > I think it is cool. > > Oleg (author of task.ijs) produced lots of well thought out additions to > J. But even before his work, most of my use of J (especially

Re: [Jprogramming] Residue without 0 remainder

2012-12-26 Thread Devon McCormick
Apply decrement with 12 mod, then its inverse: 12&|&.<: 9+i.7 9 10 11 12 1 2 3 On Wed, Dec 26, 2012 at 7:13 AM, Ric Sherlock wrote: > Harvey, > Here's an explicit verb that I think does what you ask for: > > modvalverb=: 4 : 0 > 'datalist offset'=. 2{.y > modval=. x > mm=. modval | off

Re: [Jprogramming] Residue without 0 remainder

2012-12-26 Thread Ric Sherlock
Harvey, Here's an explicit verb that I think does what you ask for: modvalverb=: 4 : 0 'datalist offset'=. 2{.y modval=. x mm=. modval | offset + i.#datalist mm=. (0 = mm)} mm,:modval ) 12 modvalverb (i.7); 9 9 10 11 12 1 2 3 I'm not sure what the point of giving a datalist is though

Re: [Jprogramming] arithmetic sequence

2012-12-26 Thread Boyko Bantchev
On 26 December 2012 05:12, Bo Jacoby wrote: > what is your point? What is not clear to you? You quote some words of mine and say you disagree. That itself is ok. Disagreement is but a matter of opinion, taste, and character; all this has nothing to do with logic. But if you mean to also dispr

Re: [Jprogramming] Recurring holiday amusement

2012-12-26 Thread Linda Alvord
Kip, Here are some samples: Not quite what you wanted from me: fibla=:[: +/\ |. recur=:^: n=: 13 :'0{"1 fibla recur (i.y) ] 1 1' n 12 1 1 2 3 5 8 13 21 34 55 89 144 Raul's and my rendition of his version: fib=:,+/@{.~&_2 fib2=:,_2 ([: +/ {.)] fib recur (i.6)]1 1