Re: [Jprogramming] Advent of code newbie

2023-12-09 Thread Richard Donovan
:45 AM Richard Donovan wrote: > > Hi. Just dipping into Advent of Code for the first time. > > Firstly, I find the colour scheme very difficult to read and wondering if > it's changeable? > > Secondly, looking at the J wiki solution for the first ever AOC in 2015, th

Re: [Jprogramming] Advent of code newbie

2023-12-09 Thread Richard Donovan
polished design. > > Thanks, > > -- > Raul > > On Sat, Dec 9, 2023 at 8:45 AM Richard Donovan wrote: >> >> Hi. Just dipping into Advent of Code for the first time. >> >> Firstly, I find the colour scheme very difficult to read and wondering if >> i

[Jprogramming] Advent of code newbie

2023-12-09 Thread Richard Donovan
Hi. Just dipping into Advent of Code for the first time. Firstly, I find the colour scheme very difficult to read and wondering if it's changeable? Secondly, looking at the J wiki solution for the first ever AOC in 2015, the very first problem is solved by (in effect) the following code: +/ 1

[Jprogramming] Alternating sequences

2023-10-03 Thread Richard Donovan
After watching a math video on YouTube I started to investigate the implementation of alternating sequences in J. Using the site search function, (alternating sequences site:jsoftware.com) I discovered an entry in the NYCJUG of 2022-11-08 which contains an excellent example: calce=: 13 :

[Jprogramming] Primes with combination of same digits

2023-09-22 Thread Richard Donovan
Hi I am trying to develop a program to find primes with n digits abc such that acb bac bca cab and cba are also primes. (obviously trivial if aaa is prime!). An example with n=3 is 1 p: 199 919 991 1 1 1 These primes are thin on the ground since they cannot contain any of the digits 2 4 5 6

Re: [Jprogramming] integers occur in integers?

2023-08-26 Thread Richard Donovan
;Pascal Jasmin' via Programming wrote: > > > 3 2 1(*./@:(e.~)&~.&(/:~) 10&#. inv)("1 0) 230 123 111 123123132 > > 0 1 1 1 > > > On Saturday, August 26, 2023 at 06:31:01 a.m. EDT, Richard Donovan > wrote: > > I am trying to find out whethe

Re: [Jprogramming] integers occur in integers?

2023-08-26 Thread Richard Donovan
integers? Richard Donovan writes: > I am trying to find out whether a series of integers y only contain a set of > integers x > > That is,1 3 5 verb 5311 10531 536 111 > should return 1 0 1 1 > >NB. only 1 3 5 occur in 5311 >NB. not only 1 3 5 occ

Re: [Jprogramming] integers occur in integers?

2023-08-26 Thread Richard Donovan
mp;(/:~) 10&#. inv)("1 0) 230 123 111 123123132 0 1 1 1 On Saturday, August 26, 2023 at 06:31:01 a.m. EDT, Richard Donovan wrote: I am trying to find out whether a series of integers y only contain a set of integers x That is,1 3 5 verb 5311 10531 536 111 should ret

[Jprogramming] integers occur in integers?

2023-08-26 Thread Richard Donovan
I am trying to find out whether a series of integers y only contain a set of integers x That is,1 3 5 verb 5311 10531 536 111 should return 1 0 1 1 NB. only 1 3 5 occur in 5311 NB. not only 1 3 5 occur in 10531 NB. not only 1 3 5 occur in 536 NB. only 1 3 5 occur in 11

Re: [Jprogramming] [Jgeneral] Report of the J Wiki Meeting of 2023-05-18

2023-05-22 Thread Richard Donovan
Re my previous I have taken the liberty of registering Jiverlang.com as a domain name and would be pleased to transfer the ownership thereof f.o.c. to the owners of Jsoftware.com if it ever becomes useful to them. Richard Donovan

Re: [Jprogramming] [Jgeneral] Report of the J Wiki Meeting of 2023-05-18

2023-05-22 Thread Richard Donovan
characters! Just an idea! Richard Donovan > On 22 May 2023, at 02:41, 'robert therriault' via General > wrote: > > == Report of Meeting 2023-05-18 == > > Present: John Baker, Ed Gottsman, Dave Lambert and Bob Therriault > > Full transcripts of this meeting are

Re: [Jprogramming] Search

2023-05-10 Thread Richard Donovan
, May 10, 2023 at 9:36 AM Richard Donovan wrote: > > Try searching for cobol lisp pl/1 c++ fortran assembly basic etc etc to see > the sort of content that J users are missing out on! > > From: Programming on behalf of > Raul Miller > Se

Re: [Jprogramming] Search

2023-05-10 Thread Richard Donovan
? (And do we want to set us more apart from K and Q?) ¹ tbh, I don’t remember if E was actually a proper language Am 10.05.23 um 08:02 schrieb Richard Donovan: > What is really weird is that the extremely intelligent humans who invented > this remarkable language didn’t foresee this problem

Re: [Jprogramming] Search

2023-05-10 Thread Richard Donovan
not be comprehensive. Thanks, -- Raul On Tue, May 9, 2023 at 11:12 PM Richard Donovan wrote: > > What is really weird is that the extremely intelligent humans who invented > this remarkable language didn’t foresee this problem in the first place! > > > On 9 May 2023, at 22:47,

Re: [Jprogramming] Search

2023-05-10 Thread Richard Donovan
I guess it should be decided IF a name change would be useful and IF it will take place before bothering to work out what the new name would be! Anything would suit me that didn’t produce google clashes! Richard Donovan From: Programming on behalf of Michael

Re: [Jprogramming] Search

2023-05-09 Thread Richard Donovan
You are right, C is an ususable language. > I think noone uses it. You cannot search. > > This thread is silly. > J is one of single letter names. > It’s fine. > >> Am 09.05.23 um 22:56 schrieb Richard Donovan: >> One of the most frustrating things about J is its name!

Re: [Jprogramming] Search

2023-05-09 Thread Richard Donovan
ch. > > This thread is silly. > J is one of single letter names. > It’s fine. > >> Am 09.05.23 um 22:56 schrieb Richard Donovan: >> One of the most frustrating things about J is its name! For example, on >> Stack Exchange code review it seems impossible to search fo

Re: [Jprogramming] Search

2023-05-09 Thread Richard Donovan
Thanks Raul, that works well. Stack was only an example and the problem is universal. Richard Donovan > On 9 May 2023, at 22:52, Raul Miller wrote: > > On stack exchange, https://stackoverflow.com/questions/tagged/j is > also a good place to start. > > Thanks, > >

Re: [Jprogramming] Search

2023-05-09 Thread Richard Donovan
Ivercode isn’t in use. Richard Donovan > On 9 May 2023, at 22:14, Henry Rich wrote: > > You can't beat a horse with no horse. What name do you suggest? > > Henry Rich > >> On 5/9/2023 4:56 PM, Richard Donovan wrote: >> One of the most frustrating things a

[Jprogramming] Search

2023-05-09 Thread Richard Donovan
feel that eventually this change would have incredible benefits, similar to the recent long overdue introduction of sensible error messages which has been a real boon to me! Richard Donovan -- For information about J forums see

Re: [Jprogramming] Attn Bob Therriault re Nuvoc start page.

2023-04-24 Thread Richard Donovan
w you make out. Losing the colour code of NuVoc is certainly > not part of our plan for the wiki. > > Cheers, bob > >> On Apr 24, 2023, at 10:03, Richard Donovan wrote: >> >> Hi Bob >> >> I am running latest J level on latest version of iOS although the sam

[Jprogramming] Attn Bob Therriault re Nuvoc start page.

2023-04-24 Thread Richard Donovan
I see the colourful page (which I prefer) for only a split second before the new uncoloured version overwrites it? Is this a bug or a feature? Cheers, Richard Donovan -- For information about J forums see http://www.jsoftware.com

Re: [Jprogramming] Strange error

2023-03-31 Thread Richard Donovan
rotection doesn't see to make much difference which, presumably, is > the reason for the runaround getting it to this point. > > Does this match your experience? > > If so, I guess we should make a note of this rigmarole in the Windows > installation instructions... >

Re: [Jprogramming] Strange error

2023-03-31 Thread Richard Donovan
ler, that final stage of >> protection doesn't see to make much difference which, presumably, is >> the reason for the runaround getting it to this point. >> >> Does this match your experience? >> >> If so, I guess we should make a note of this rigmarole

Re: [Jprogramming] Strange error

2023-03-31 Thread Richard Donovan
ing. Since it's an installer, that final stage of > protection doesn't see to make much difference which, presumably, is > the reason for the runaround getting it to this point. > > Does this match your experience? > > If so, I guess we should make a note of this rig

Re: [Jprogramming] Strange error

2023-03-31 Thread Richard Donovan
e spelling error. Use > > ;@:("."0@":&.>) 40 5 9008 90 > > Henry Rich > > >> On 3/30/2023 2:52 PM, Richard Donovan wrote: >> Hi Henry >> >> I deleted all the spaces and replaced with “real” ones. Still in error >> >> Ran a.i.

Re: [Jprogramming] Strange error

2023-03-30 Thread Richard Donovan
since J402 and this is the first problem I’ve had! Richard > On 30 Mar 2023, at 18:06, Henry Rich wrote: > My guess is you pasted in a nonbreaking space. The caret points to the > error. > > Wouldn't you like release 9.4, which would give more error information? >

[Jprogramming] Strange error

2023-03-30 Thread Richard Donovan
JVERSION Engine: j902/j64avx2/windows Release-a: commercial/2020-12-05T13:36:01 Library: 9.02.08 Qt IDE: 1.9.2s/5.12.10(5.12.10) Platform: Win 64 Installer: J902 install InstallPath: c:/program files/j902 ".@": "."0@": each 40 5 9008 90 |spelling error | | ^ | ".@":"."0@":each 40 5 9008 90 (N

Re: [Jprogramming] EVM

2022-12-05 Thread Richard Donovan
| 16 | | | | > +-+ +--++---+ +-+ > > >On Sat, Dec 3, 2022 at 8:14 PM Richard Donovan >wrote: > > > I was reading on the J website of the useful sounding adverb EVM so I went > > to the link at Help / Learning / Ap 1: Evaluatin

Re: [Jprogramming] EVM

2022-12-04 Thread Richard Donovan
That just displays the EVM adjective! Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows From: Richard Donovan Sent: Saturday, December 3, 2022 12:14:34 PM To: J Programming Subject: EVM I was reading on the J website of the

Re: [Jprogramming] Questions about Advent of Code Day 2

2022-12-03 Thread Richard Donovan
I’ve had that same thing happen to me - very frustrating! Can J not be modified to ignore non-breaking space? > On 2 Dec 2022, at 23:39, Jaume wrote: > > Thank you both. That was it. > Too long a day. > > Missatge de bill lam del dia ds., 3 de des. 2022 a > les 0:11: > >> Perhaps you copy a

Re: [Jprogramming] Avoiding J crash

2022-12-03 Thread Richard Donovan
wer off the computer. > >> On Sat, 3 Dec 2022 at 8:14 PM Richard Donovan wrote: >> >> Elijah; >> >> Most times I can’t even get in to task manager. As this problem crashes >> the whole system and causes the need for a reboot, I am obviously loathe to &g

[Jprogramming] EVM

2022-12-03 Thread Richard Donovan
I was reading on the J website of the useful sounding adverb EVM so I went to the link at Help / Learning / Ap 1: Evaluating Expressions - J Wiki (jsoftware.com) and downloaded it. So far I cannot get it to work at all

Re: [Jprogramming] Avoiding J crash

2022-12-03 Thread Richard Donovan
hould_ work. I can look into making it a bit more responsive for long array operations, but am curious to know what specifically has caused you trouble. On Fri, 2 Dec 2022, Richard Donovan wrote: > Hi! > > Is there any way to avoid the situation whereby by error I put J into an >

[Jprogramming] Avoiding J crash

2022-12-02 Thread Richard Donovan
Hi! Is there any way to avoid the situation whereby by error I put J into an infinite loop from which the only recovery is to reboot my Windows laptop? I guess that my erroneous routine is locking the CPU to such a such an extent that I can’t even get to run Jbreak. I quite often receive a re

Re: [Jprogramming] Truncating primes

2022-11-20 Thread Richard Donovan
s of high precision number theory contexts (which wasn't > really a part of Ken Iverson's background). > > I hope this helps, > > -- > Raul > >> On Sun, Nov 20, 2022 at 4:39 AM Richard Donovan >> wrote: >> >> Proving that I am still baffled b

Re: [Jprogramming] Truncating primes

2022-11-20 Thread Richard Donovan
216567629137 > 16567629137 > 6567629137 > 567629137 >67629137 > 7629137 > 629137 > 29137 >9137 > 137 >

Re: [Jprogramming] Truncating primes

2022-11-19 Thread Richard Donovan
Thanks for all the replies. It is fascinating to see all the different approaches to solving a problem in J. This forum is super helpful and friendly and always a mine of information! > On 19 Nov 2022, at 23:54, Richard Donovan wrote: > > Thanks Elijah that works really w

Re: [Jprogramming] Truncating primes

2022-11-19 Thread Richard Donovan
> 29137 >9137 > 137 > 37 > 7 > >> On Sat, 19 Nov 2022, Richard Donovan wrote: >> >> Hi >> >> I am doing experiments with large primes, in particular

[Jprogramming] Truncating primes

2022-11-19 Thread Richard Donovan
Hi I am doing experiments with large primes, in particular looking at primes that remain primes when n digits are truncated from the left. For example 6391373391373913731373373733 remains prime at each step. The largest of these in base 10 is 357686312646216567629137. I

Re: [Jprogramming] Old trace function

2022-10-26 Thread Richard Donovan
fork (f g h) y' > (f g h) y > dd 'dyad fork x (f g h) y' > x (f g h) y > dd '4 train monad (e f g h) y' > (e f g h) y > dd '4 train dyad x (e f g h) y' > x (e f g h) y > dd '5 train monad (d e f g h) y' > (d e f g h) y > dd &#

Re: [Jprogramming] Old trace function

2022-10-26 Thread Richard Donovan
Brian, I agree with you totally re fgh.ijs, which I consider to be exemplary, and also about Trace which I find confusing and disappointing. > On 25 Oct 2022, at 19:59, Brian Schott wrote: > > First of all, I agree with Raul's idea of an Essay approach and/or perhaps > a Lab or a video. Th

Re: [Jprogramming] Old trace function

2022-10-26 Thread Richard Donovan
gt;> 'f_ ',bracket y >>> : >>> (bracket x),' _f_ ',bracket y >>> ) >>> >>> g=: 3 : 0 >>> 'g_ ',bracket y >>> : >>> (bracket x),' _g_ ',bracket y >>> ) >>> >>> h=: 3 :

Re: [Jprogramming] Old trace function

2022-10-26 Thread Richard Donovan
> i=: 3 : 0 > 'i_ ',bracket y > : > (bracket x),' _i_ ',bracket y > ) > > fI=: 3 : 0 > 'fI_ ',bracket y > : > (bracket x),' _fI_ ',bracket y > ) > > gI=: 3 : 0 > 'gI_ ',bracket y > : > (bracket x),&#

[Jprogramming] Old trace function

2022-10-23 Thread Richard Donovan
Many years ago (J4 or J6) I remember there was a function that showed how hooks and trains etc were expanded, using such output as x _f_ g_ y etc (where _f_ indicated dyad etc). Does anyone know of this and whether it still exists? Thanks in advance --

Re: [Jprogramming] Quitting J903

2022-10-19 Thread Richard Donovan
take effect the next time > you start jqt.) > > -- > Raul > > On Mon, Oct 17, 2022 at 2:36 PM Richard Donovan wrote: > > > > In previous versions of J, erroneously pressing the X in the top right of > > the Windows Jterm screen produced an alert box asking if you really

[Jprogramming] Quitting J903

2022-10-17 Thread Richard Donovan
In previous versions of J, erroneously pressing the X in the top right of the Windows Jterm screen produced an alert box asking if you really wanted to quit. This was very useful as losing a session can be seriously annoying! I can’t find that facility in J903 under Windows 10. I hope it’s aroun

Re: [Jprogramming] Viewmatnot functioning in IOS J

2022-09-20 Thread Richard Donovan
7;Mike Day' via Programming < > > programm...@jsoftware.com> wrote: > > > > > Confirming Raul’s observations on this iPad running J701 under iOS > 12.5.5 > > > . > > > viewmat shows the circle, square and intermediate shape without > proble

[Jprogramming] Viewmatnot functioning in IOS J

2022-09-19 Thread Richard Donovan
viewmat((1>+/~@:(4^~(%~i:)))*.1<+/~@:(2^~(%~i:)))666 NB. no output $viewmat((1>+/~@:(4^~(%~i:)))*.1<+/~@:(2^~(%~i:)))666 0 0 -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Remove first

2022-09-05 Thread Richard Donovan
I need a verb similar to dyadic -. but which only removes items which are one for one specified by y. I want verb t such that... 'elect' t 'e' lect 'elected' t 'ee' lcted 'elected' t 'eet' lced 'elected' t 'dec' lete That is, the right argument is taken item by item and then removes th

Re: [Jprogramming] J cheat sheet (or an alternative view for the NuVoc table)

2022-08-26 Thread Richard Donovan
Hi Sergey This is great! Can you explain what "supports unpacking" means against the entries for =: and =. ? Thank you From: Programming on behalf of 'Sergey S' via Programming Sent: Wednesday, April 6, 2022 9:37:32 AM To: programm...@jsoftware.com Subject: [

Re: [Jprogramming] I can’t find tie 96{a. On my iPad keyboard?

2022-08-20 Thread Richard Donovan
As usual, you’re absolutely right Raul! ✅ > On 20 Aug 2022, at 21:11, Raul Miller wrote: > > On Sat, Aug 20, 2022 at 2:25 PM Richard Donovan > wrote: >> I can’t find “tie” conjunction 96{a. On my iPad English UK keyboard? > > As I understand it, if you tap the [.?12

Re: [Jprogramming] I can’t find tie 96{a. On my iPad keyboard?

2022-08-20 Thread Richard Donovan
Update I have it on my J7 soft keyboard but not on J9 > On 20 Aug 2022, at 19:25, Richard Donovan wrote: > > I can’t find “tie” conjunction 96{a. On my iPad English UK keyboard? -- For information about J forums

[Jprogramming] I can’t find tie 96{a. On my iPad keyboard?

2022-08-20 Thread Richard Donovan
I can’t find “tie” conjunction 96{a. On my iPad English UK keyboard? -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Plot a Squircle in J

2022-08-19 Thread Richard Donovan
forum Subject: Re: [Jprogramming] Plot a Squircle in J On Mon, Aug 15, 2022 at 6:31 AM Richard Donovan wrote: > I want to construct and plot a Squircle in J. > > There is a lengthy article in Wikipedia but in simple language I want my > Squircle to be defined as the continuous l

Re: [Jprogramming] Plot a Squircle in J

2022-08-15 Thread Richard Donovan
Raul, that’s really clever you smoothie! > On 15 Aug 2022, at 14:20, Raul Miller wrote: > > On Mon, Aug 15, 2022 at 6:31 AM Richard Donovan > wrote: >> I want to construct and plot a Squircle in J. >> >> There is a lengthy article in Wikipedia but in simple l

Re: [Jprogramming] Plot a Squircle in J

2022-08-15 Thread Richard Donovan
Thanks for your interest. Have a good sleep! Richard Donovan > On 15 Aug 2022, at 11:54, Elijah Stone wrote: > > Was about to go to bed, but this tickled my imagination, so I will say a > little something. > > Rather than calculus, I would do this as an implicit curve. &

[Jprogramming] Plot a Squircle in J

2022-08-15 Thread Richard Donovan
the calculation of the intermediate points is a calculus function? Has anyone a good idea for performing that calculation? Could the J function “ plot “ then draw the Squircle? Thanks Richard Donovan -- For information about J for

Re: [Jprogramming] Export system

2022-08-06 Thread Richard Donovan
effective but not if users are determined enough to hack your codes. https://www.jsoftware.com/docs/help803/user/locked_scripts.htm On Sat, 6 Aug 2022 at 6:03 AM Richard Donovan wrote: > Hi > > I have written a system in J that I believe would be of interest to > commercial compani

Re: [Jprogramming] Export system

2022-08-05 Thread Richard Donovan
possible new user should instal J just to trial a system feels a bit inhibitive. It seems to me that setting the system up as a web server is the way to go. Thanks again Richard Donovan > On 5 Aug 2022, at 23:22, Elijah Stone wrote: > > You cannot; JE is a direct interpreter, and it

[Jprogramming] Export system

2022-08-05 Thread Richard Donovan
Hi I have written a system in J that I believe would be of interest to commercial companies. If I wanted to achieve this, how could I export the object code to an interested party without having to send the J source code and reveal my methods? Thanks in advance

[Jprogramming] Image processing

2022-04-25 Thread Richard Donovan
Hi Does anyone have routines, experience or info regarding access and processing of image files, particularly BMP and PNG, which have been created or photographed on Apple phones? I need to know record structure etc to be able to load and process inside of J. Thanks in advance

Re: [Jprogramming] Help required

2022-04-13 Thread Richard Donovan
ubject: Re: [Jprogramming] Help required l =. 'abc','def',:'ghi' l abc def ghi r =. 'abceee','defabc','mmmxxx','abcdef',:'ghidef' r abceee defabc mmmxxx abcdef ghidef l (] #~ [: *./"1 (e.~ 2 3&a

[Jprogramming] Help required

2022-04-08 Thread Richard Donovan
of any two concatenated three-character items, so in the above example the required output would be defabc,abcdef,ghidef There may be many thousands of entries in each tables, so an efficient algorithm is required! Thanks in advance Richard Donovan

Re: [Jprogramming] Amend an array with an array

2022-03-08 Thread Richard Donovan
gic, specifying only the coordinate of the > upper-left corner: > > am=. {{ x ( b 2 2 am a > 0 1 2 3 4 > 5 6 7 8 9 > 10 11 100 200 14 > 15 16 300 400 19 > 20 21 22 23 24 > > This will also work for higher-rank a and b. > > -E > >> On

[Jprogramming] Amend an array with an array

2022-03-08 Thread Richard Donovan
Can I amend an array with a smaller array? For example amend a 5x5 array by a 2x2 array starting at location x,y within the larger array? Thanks Richard Donovan -- For information about J forums see http://www.jsoftware.com

Re: [Jprogramming] Is a +/ operation interruptible

2022-02-28 Thread Richard Donovan
load 'foldr' not found: /private/var/mobile/Containers/Data/Application/84605E1E-B9BA-4FE7-8FFA-1C6C5C0A29E0/ As a matter of interest what did people use for this facility before F. was invented? Richard Donovan > On 28 Feb 2022, at 18:49, Julian Fondren wrote: > >

[Jprogramming] Which is "better"...

2022-02-28 Thread Richard Donovan
 ...whatever “better” means! The result of the be Sent from Mail for Windows -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Is a +/ operation interruptible

2022-02-28 Thread Richard Donovan
). Thanks in advance, Richard Donovan -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Inconsistency?

2022-02-24 Thread Richard Donovan
treated differently! Does this apply to every operation on data that may be one or more characters? Thanks Richard Donovan > On 24 Feb 2022, at 17:34, Henry Rich wrote: > > Did you mean > >$ (,'r') e./ "1 0 test > 2 5 1 > > ? Note that >

[Jprogramming] Inconsistency?

2022-02-24 Thread Richard Donovan
J901 Windows $test 2 5 $ 're' e./ "1 0 test 2 5 2 $ 'rebe' e./ "1 0 test 2 5 4 Etc. BUT $ 'r' e./ "1 0 test 2 5 This has caused me no end of problems and appears to be totally in

Re: [Jprogramming] Report on J Wiki Meeting of February 10, 2022

2022-02-15 Thread Richard Donovan
to achieve what I want to do! Richard Donovan > On 11 Feb 2022, at 22:26, 'robert therriault' via Programming > wrote: > > Present: Art Anger, Will Gajate, Raul Miller, Bob Therriault. > > Will updated the progress made on the J playground. It is now up and runni

Re: [Jprogramming] Newbie question

2021-10-16 Thread Richard Donovan
t 4. > > Alternatives you might try: > > z; (t 4) > z;] t 4 > (z);t 4 > > I hope this makes sense, > > -- > Raul > >> On Sat, Oct 16, 2021 at 10:14 AM Richard Donovan >> wrote: >> >> Hi. I write a function t, execute it, then e

[Jprogramming] Newbie question

2021-10-16 Thread Richard Donovan
Hi. I write a function t, execute it, then execute it again. On the second execution, I want to display the intermediate result then the final result I have coded it as below The intermediate result is displayed as the intermediate result of the FIRST execution I was surprised as I though

Re: [Jprogramming] Newbie query

2020-12-14 Thread Richard Donovan
Thanks! > On 13 Dec 2020, at 17:02, Hauke Rehr wrote: > > try > > (,a) -: d=:dec e=:enc a=: ": 44{a. > > I guess d will be a list while a is a single atom > (compare $a with $d for verification) > >> Am 13.12.20 um 17:27 schrieb Richard Donovan: >>

[Jprogramming] Newbie query

2020-12-13 Thread Richard Donovan
Hi I have written a text encryption / decryption system in J. The input has to be a literal. I test it using the following system:- NB. Encrypt, Decrypt, Compare identical a -: d=: dec e=:enc a=:100#'abcdefghij' 1 a -: d=: dec e=:enc a=: ": 100?@$?256 1 NB. BUT a -: d=:de

Re: [Jprogramming] A bit-twisting puzzle

2019-07-29 Thread Richard Donovan
MPA,B BZ STMT From: Programming on behalf of Henry Rich Sent: Monday, July 29, 2019 1:51:34 AM To: programm...@jsoftware.com Subject: [Jprogramming] A bit-twisting puzzle Many of the members of this Forum will remember the days of assemble

Re: [Jprogramming] A bit-twisting puzzle

2019-07-29 Thread Richard Donovan
Henry MP A,B Multiply & set CC BZ STMT STMT EQU * From: Programming on behalf of Roger Hui Sent: Monday, July 29, 2019 5:49:28 AM To: programm...@jsoftware.com Subject: Re: [Jprogramming] A bit-twisting puzzle If you have thought about

[Jprogramming] Rubik's cude

2016-11-19 Thread Richard Donovan
Hi! Has anyone written a J program to solve a Rubik’s cube? TIA Richard -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] Look and Say sequence. Sloane A005150

2016-04-26 Thread Richard Donovan
Hi Does anyone know a neat J expression to calculate this series? Thanks in advance -- For information about J forums see http://www.jsoftware.com/forums.htm

Re: [Jprogramming] Magic squares

2015-12-22 Thread Richard Donovan
ate an initial square matrix order n of numbers 1 to n > z =. 1 + i. y,y > > NB. Creat a rotation vector from -n/2 ... 0 ... n/2 > q =. ( - (<. 0.5 * y))+ i.y > > NB. rotate the rows of the matrix my q then rotate the columns > NB. of the answer by q. You will get a new matr

[Jprogramming] Magic squares

2015-12-22 Thread Richard Donovan
Is there a J routine to construct magic squares of side n? Thanks in advance. -- For information about J forums see http://www.jsoftware.com/forums.htm

[Jprogramming] 2048

2014-03-28 Thread Richard Donovan
Has anyone tried the game "2048" on http://gabrielecirulli.github.io/2048/ with the possibility of writing a J routine to solve it? For those who haven't tried it it's a very compelling number / logic game that I think is possibly solvable in J but I don't have the necessary experience to do it