Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread David Lambert
I pasted these four lines into j904 linux, resulting in a hilbert curve plot.  I've got to believe that your session history simply doesn't include the iter definition. Re: Programming Digest, Vol 202, Issue 26 iter=: (, 1 , +@|.) @: (,~ 0j_1 ,~ 0j_1*|.) hilbert=: {{0j1+(%{:) +/\0,iter ^: y '

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread bill lam
Agreed. I saw the paste lines are show with a different font color on RStudio. On Sun, Jul 31, 2022 at 11:50 PM Raul Miller wrote: > That could be a bit tricky, since the entire edit session is editable. > > So I suspect the concept you are aiming at would be that "pasting at > the end" should g

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread Henry Rich
He must have pasted the two lines for iter and hilbert lines together.  Then he loaded plot and ran hilbert, with iter undefined. Never mind this example: beginners encounter this often, and it's very nonintuitive, because you can see the lines in the term window with no indication that some o

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread chris burke
Note that the error occurred in hilbert. So the OP had run that line correctly. It was not that he had pasted the multiple lines and pressed Enter expecting them all to run. On Sun, Jul 31, 2022 at 8:50 AM Henry Rich wrote: > > I agree with you. That would be a change and might discommode some >

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread Henry Rich
I agree with you.  That would be a change and might discommode some old-time users, but I bet few would notice. We could say, pasting above the last line merely edits the log, while pasting into the last line executes all sentences ended by LF.  That is a very small change from the current beh

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread Raul Miller
That could be a bit tricky, since the entire edit session is editable. So I suspect the concept you are aiming at would be that "pasting at the end" should give a number of lines which would be executed at once. Perhaps a visual cue would be best here -- probably the text which would be executed

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread bill lam
I think this is counter intuitive. It would be nice if all the lines will be executed together when user press enter after paste. On Sun, 31 Jul 2022 at 11:20 PM Henry Rich wrote: > Important point: if you paste multiple lines into Jqt and then press > ENTER, only the last line will be executed.

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread Henry Rich
Important point: if you paste multiple lines into Jqt and then press ENTER, only the last line will be executed.  To execute the entire block, you need 'Run Selection' (F8). The idea is that the term window is not a session log, it's a window that you can edit.  In general, pressing ENTER on t

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread chris burke
That is the error you get if "iter" is not defined, so you probably didn't run the first line. On Sun, Jul 31, 2022 at 4:24 AM Razetime wrote: > > On this rosetta code page for the Hilbert Curve > , I tried running the code, > but I get an error: > >

Re: [Jprogramming] Hilbert Curve error

2022-07-31 Thread Hauke Rehr
works perfectly well here JVERSION Engine: j903/j64/linux Beta-r: commercial/2021-09-26T14:44:24 Library: 9.03.08 Platform: Linux 64 Installer: J903 install InstallPath: /home/hauke/j903 Contact: www.jsoftware.com Am 31.07.22 um 13:24 schrieb Razetime: On this rosetta code page for the Hilb

[Jprogramming] Hilbert Curve error

2022-07-31 Thread Razetime
On this rosetta code page for the Hilbert Curve , I tried running the code, but I get an error: iter=: (, 1 , +@|.) @: (,~ 0j_1 ,~ 0j_1*|.) hilbert=: {{0j1+(%{:) +/\0,iter ^: y ''}} require 'plot' plot hilbert 5 |value error: iter | 0j1+(%{:)+/\0,