$ ijconsole
f=: {{ GLOBAL=: 'global defined here' }}
GLOBAL [ f''
|domain error in GLOBAL, executing monad GLOBAL
| GLOBAL[f''
GLOBAL [ f''
global defined here
JVERSION
Engine: j9.5.0-beta9/j64avx2/linux
Build: commercial/2023-12-06T14:16:14/clang-11-0-0/SLEEF=1
Library:
$ ijconsole
JVERSION
Engine: j9.5.0-beta9/j64avx2/linux
Build: commercial/2023-12-06T14:16:14/clang-11-0-0/SLEEF=1
Library: 9.5.5
Platform: Linux 64
Installer: unknown
InstallPath: /usr/share/j/9.5
Contact: www.jsoftware.com
]A=: 3 3 $ _4 {. 1
0 0 0
1 0 0
0 1 0
3 $. $. A
0
3 $.
TAU=:2p1 NB. tauday.com
NB. round y to nearest multiple of x
round=: 1&$: :([*[:<.1r2+%~)
round 4.5
5
3 round 4.5
6
round&.:+. 22j10 * ^j.TAU*15% 360
19j15
NB. x the angle, y the point
NB. round "under" expression as Re Im vector
rotate=: [: round&.:+. (* [: ^ [:
Self reference applies to the verb in which it is defined. This seems
to be the entire tacit verb.
https://code.jsoftware.com/wiki/Vocabulary/dollarco
$ ijconsole
a=: i.4
ff=: 3 : 0
+/ y
:
ff x,:y
)
ff a
6
666 ff a
666 667 668 669
ff_tacit=: +/ : ([: $: ,:)
ff_tacit a
6
?
1 00;1 01;1 01;1 01;,00 : 1
1 00;1 01;1 01;1 01;,01 : 2
1 00;1 01;1 01;1 01;,2 : 3
1 00;1 01;1 01;1 01;,3 : 4
1 00;1 01;1 01;1 2 : 4
Date: Tue, 2 May 2023 12:54:27 +1000
From: Aaron Ash
To:programm...@jsoftware.com
Subject: Re: [Jprogramming] boxes di
I've loaded a json object 9 levels deep. If a verb to display nested
box structures in outline form exists please share it with me. Usually
I just search for keys and values ignoring the structure, but this can
go awry and I thought I'd try a new method. Thanks, Dave.
I maintain just one local version of j. Solved the update-alternatives
issue, manually choosing (cd $BIN && ln -sf ijconsole-9.4 ijconsole)
instead of the update-alternatives command. Leading to the next
problem: addons/dev aren't copied to /usr/share/j/9.04/addons/dev
This is the first I've heard of the Debian alternatives system. I had
previously installed the beta version in /usr
$ tar xpzf j9.4_linux64.tar.gz
$ cd j9.4/bin
$ sudo ./install-usr.sh
[sudo] password for lambertdw:
this script will install j system on /usr
/home/lambertdw/Downloads/j9.4/bin
Please invite me to the j wiki meetings. Thanks Dave.
If you would like to participate in the development of the J wiki please
contact us on the general forum and we will get you an invitation to the next J
wiki meeting held on Thursdays at 24:00 (UTC) Next meeting is (Thursday)
https://code.jsoftware.com/wiki/Guides/Window_Driver/Window_Driver_Overview#System_Events
I'd repair the value error if I knew how.
JVERSION
Engine: j9.4.0-beta13/j64avx2/linux
Build: commercial/2023-02-23T11:24:28/clang-11-0-0/SLEEF=1
Library: 9.4.16
Qt IDE: 2.0.3/5.12.8(5.15.6)
Platform:
The web page session was as follows, with exit 0 being the culprit in my
opinion.
3
3
3x
3
exit 0
bash_prompt$ ~/downloads/installs/j904/bin/jhs
JHS - J HTTP Server
if you don't see a new jijx tab in your browser,
manually browse to: http://127.0.0.1:65001/jijx
best practice:
NB. 1 iff x and y are congruent mod m.
Congruent=: {{ =&:(m | m + m | ]) }} NB. unused.
is_Gaussian_prime=: 3 :0"0
a=. | +. y
if. 0 e. a do.
NB. if. 3 (4 Congruent) +/ a do.
if. 3 (= (4 | +/)) a do.
1 p: +/ a
else.
0
end.
else.
(1 p: +&:*:)/ a
end.
)
NB. mathworld list of
Of the new modifier trains, I've found ^:^:_ as "while". A simple test
code: increment while less than 8. (With some errors one need kill the
j session.)
>: (^:^:_) (<&8) 2
8
While=: ^:^:_
u. While v.
u.^:v.^:_
Date: Wed, 15 Feb 2023 13:12:37 +0100
From: Jan-Pieter Jacobs
Upon mistyping ". as $: , the error message runs together datatypeS:
$ j
JVERSION
Engine: j904/j64avx2/linux
Beta-k: commercial/2023-01-24T04:46:13
Library: 9.04.10
Platform: Linux 64
Installer: J904 install
InstallPath: /home/lambertdw/downloads/installs/j904
Contact: www.jsoftware.com
Confirmed with j904
$ alias j
alias j='/home/lambertdw/downloads/installs/j904/bin/jconsole'
$ j
p. _15 _1 0 0 0 0 1
Segmentation fault (core dumped)
$ j
p. _14 _1 0 0 0 0 1
┌─┬──┐
│1│1.58039
(<'ab') (1 e. E.)&> 'ac';'cab';'bca';'bab' NB. quicker?
0 1 0 1
(<'ab') ([: +./ E.)&> 'ac';'cab';'bca';'bab'
0 1 0 1
--
For information about J forums see http://www.jsoftware.com/forums.htm
Thank you for providing the wonderful
https://code.jsoftware.com/wiki/Scripts/WS_Files and for making it
easily found. I tried to modify it to install into its own locale,
changing the coclass target and inserting the public functionality into
z . The tests no longer pass. Please explain.
The ol' 8!: trick.
format=: 8!:2
'r<0>3.0'format 7+i.5 1
007
008
009
010
011
--
For information about J forums see http://www.jsoftware.com/forums.htm
Global iteration variables would save me a bit of time debugging.
Work-around
for_local. array do.
global=: local NB. this I write with great hindsight.
end.
And thank you muchly for the enhanced error messages. Dave
--
Please enhance the man_jpacman_ noun.
Are the options x or y? A new user won't know.
What are the choices for y? I don't know other than the few choices I
see in jpkg_jpacman_ . The page at the link was deleted, and other
information I found explained how to use jpkg only in the gui.
To avoid this situation is it possible to limit memory and cpu time on
the process?
bash provides ulimit, maybe DOS has similar facility. That said, I've
not gotten ulimit to work as I expect and instead increased my
computer's RAM. Then when I suspect there might be trouble I monitor
the
The ticks look correct, placing 5 panels into 4 zones. Perhaps the
scales should run from _0.5 to 4.5,
Well this doesn't quite work:
'density;yrange _0.5, 4.5' plot i. 5 5
(Engine: j904/j64avx2/linux Beta-e)
ate: Fri, 4 Nov 2022 09:35:53 +0100
From: Jan-Pieter Jacobs
I agree 37% isn't sparse. Were you to briefly jump around through the
data with an editor you'd probably conclude the data is sparse. I
finally measured.
Anyway, sending the output to a file was quick, and I haven't raised any
red flags that amends were not in place. Since the data has
This was my original code which ran `forever'. Were the amendments
truly in place? One array is sparse, the other pre-allocated. Comments
show observations on task manager. I don't have much experience with
Windows beyond the usual Office programs. (PS. I now realize I could
have
ps. remove "echo #" , it was nice when the loop runs just one pass.
The test file contained
id,x,xx
4,,t1
5,t2,t1
6,t1,
--
For information about J forums see http://www.jsoftware.com/forums.htm
I've got a sparse csv with shape 1183748 2141. Where there is data, it
has usually tally 2, and probably never longer than 7.
My usual methods run out of memory, something like
([: <;._2 ,&',');._2 CR-.~LF_separated_csv
I tried sparse array to store index numbers of data, with data as a
7":!.'0'8
008
Use: uniform length filenames are really nice.
Thanks! Dave
--
For information about J forums see http://www.jsoftware.com/forums.htm
I think you've already explained this, but I don't recall why x and y
should have special status in global namespace. Perhaps I need to study
the current documentation and release notes?
$ j
JVERSION
Engine: j904/j64avx2/linux
Beta-e: commercial/2022-07-16T19:24:59
Library: 9.04.01
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
A slightly more careful addition to prior message. I'll guess that
stderr was displayed, not caught by the shell command &> .
A=:2!:0'dd if=/dev/urandom bs=100 count=1'
1+0 records in
1+0 records out
100 bytes copied, 6.2358e-05 s, 1.6 MB/s
datatype A
literal
a.i.A
133 162 11 135
2!:0'dd if=/dev/urandom bs=100 count=1'
1+0 records in
1+0 records out
100 bytes copied, 0.000193284 s, 517 kB/s
@�!"`�)��fg�
┬��R�`�D��w��r�Ĵ+�H��H�
;┘h`(wB�wS��̎��
J�$�F��`3��<`/�[��X@�l=��ٝe�y��
|Date: Fri, 24 Jun 2022 11:12:11 +0200
|From: Pawel Jakubas
|To:
Dr. Iverson disavowed operator overloading. Since otherwise this seems
like a great case for overloading I propose a new feature. In this, the
rational precision is specified as maximum either denominator or number
of digits therein, and set as a global parameter. Currently it exists
as _ .
A global setting determines default floating print precision. Format
accepts customization. Rationals print to arbitrary base 10 representation.
9!:10'' NB. show print precision
6
1p1
3.14159
9!:11 ] 16 NB. set default
1x1
2.718281828459045
NB. customize
":!.3 ]
is to
take place.
NB.- It should return a scalar result. Empty values are not
allowed.
Thank you, David Lambert
--
For information about J forums see http://www.jsoftware.com/forums.htm
Converting the conjunction to an adverb and using u for x seems to work,
integrate=: 1 :0
'lower upper sd'=. 3{.y,8
in=. 5
len=. 2^i.in
diff=. upper-lower
int=. 3 : ',(_1 1*r*3^_0.5)+/+/\r,}:y#+:r=.%+:y'
scale=. [: lower&+ diff&*
f=. diff&*@(+/)@:u@scale@int % +:
g=. f"0 len
whilst. 1 do.
r=.
The test fn integrate 0 10 12 evaluates to a verb rather than to
9862.950182 14
I suspect this is indicates a more widely spread issue with old style
codes.which I haven't grokked anyway.
$ j
JVERSION
Engine: j903/j64avx2/linux
Release-b: commercial/2022-01-28T04:13:29
Library:
I updated the page to version to J903, primarily by swapping the fold
arguments. New example demonstrates use case for halt upon
count---please don't deprecate. I also find the following strange:
Z: 0 NB. Z: recognized as dyad
|domain error
| Z:0
0 Z: 0 NB. Z: recognized
fold: discussion page states the model is incorrect. Had I not found
the little lie to be initially enlightening (The TeX Book, Knuth) , I'd
have changed the page. I think the fcap page needs change.
Fold single examples:
Forward (dyad): 0 U F.. V 2 3 4 is equivalent to U 4 V 3 V 2 V 0
Implementation of this customization not on my wish list:
I. 1 1j4
0 1 0 0 0 0
I.!.666 ] 1 1j4
|domain error
| I. !.666]1 1j4
--
For information about J forums see http://www.jsoftware.com/forums.htm
JVERSION
Engine: j903/j64avx2/linux
Beta-v: commercial/2021-11-16T21:55:10
Library: 9.03.05
Platform: Linux 64
Installer: J903 install
InstallPath: /home/lambertdw/downloads/installs/j903
Contact: www.jsoftware.com
$ ,:^:(2=$) 2 3
1 1 2
$ ,:^:(2=$) 2 3 8
1 3
I recall we've seen this
In AOC day 3
Where Adv is the same, and u Adv is a verb
would like <:(Adv vrb Adv)> N
to produce the fork (<:Adv vrb >Adv) N
I find the new parsing rules don't help unless vrb is a conjunction, but
I don't find that this simplifies the overall result.
I'm having some difficulty understanding the parse table. What means
"ANY"? The first rule, if ANY means "arbitrary token" then I expect the
error as t_z=. (24) (/)
\newcommand{\be}{1}{\bold{\textit{#1}}}
EDGE \be{VERB} \be{NOUN} ANY 0 Monad
trace '! 4 /'
Create tacit `left hook'
lh=: {{ (u~ v)~ }}
-lh*
(-~ *)~
I think we need combine multiple rules as A0 C1 won't do the trick
A0 C1 adv (u A0) C1 u (adverbial hook)
--
For information about J forums see
Noting that binary is the base for monadic antibase,
h=: ((= +/"1) # ]) ([: #: [: i. 2&^)
3 (0 -.@:e. (Smps -: h)&>) #\i.9 NB. a test
1
And Raul already arrived here. Can we further eliminate ]same?
Date: Sat, 31 Jul 2021 15:52:03 + (UTC)
From: "'Bo Jacoby' via Programming"
To:
I've found a pervasive problem---I'm obsolete. I recall having written
or modified termcap entries. And I wrote a character cell/vi-keyboard
motion version of WINMINES that automatically played all trivially
counted zones. Following a few visually pleasing update waves, holes to
be solved
Defining stdscr helps significantly.
require'~addons/api/ncurses/ncurses.ijs'
C=:conew'ncurses'
stdscr__C =: initscr__C''
clear__C''
refresh__C''
Now, ncurses.ijs starts out with cocurrent 'ncurses' followed by a slew
of definitions. Yet, following the above sentences I do not understand
Hi, I'm looking for an example program using ncurses.
Thanks, Dave
$ sudo apt-get install libncurses5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libncurses5 is already the newest version (6.2-0ubuntu2).
$ ijconsole
u :0
|value error
| u :0
a :0
|out of memory
| a :0
JVERSION
Engine: j903/j64avx2/linux
Beta-i: commercial/2021-04-30T12:06:24
Library: 9.03.03
Platform: Linux 64
Installer: J903 install
InstallPath: /home/lambertdw/downloads/installs/j903
Contact: www.jsoftware.com
NB.
t;>From my perspective the biggest advantage of locales is that they let
>different programmers build components which will be used together in
>the same J session, without having to worry too much about trashing
>names used by each other. This results in a little extra work at the
&g
Use case: u&.cd invokes u in some directory, then cd^:_1 restores the
working directory. cd is a method in another locale that stores the
current directory before the change. coinsert doesn't provide the desired
encapsulation. What, please, is the solution?
coclass'co'
a=:3 :'FIELD=: y'
Primitive or addon? The readily available, well documented primitives are
easy to use. For instance, I have avoided the calculus addon while I would
have used those primitives since removal. The tagged bag example from the
object oriented programming lab is a hash. Were the hash data type
unexpected empty first index
$ ~/downloads/installs/j903/jconsole.sh
JVERSION
Engine: j903/j64avx2/linux
Beta-h: commercial/2021-04-05T15:15:39
Library: 9.03.03
Platform: Linux 64
Installer: J903 install
InstallPath: /home/lambertdw/downloads/installs/j903
Contact: www.jsoftware.com
The issue: sum of msize with fsize would double the data space with a
new call to createjmf_jmf_ . Due to shape, results instead in a cd
domain error. Work around, use {. msize + fsize .
require'jmf'
(,: $L:0) _ _2{. showmap_jmf_''
+-++
|msize|refs|
+-++
|100 |2 |
That msize (and refs, but I don't yet care about refs) have rank 1
instead of scalar surprised me.
require'jmf'
(,: $L:0) _ _2{. showmap_jmf_''
+-++
|msize|refs|
+-++
|100 |2 |
+-++
+-++
|5 |4 |
+-++
|1 |1 |
+-++
Right shifting might be unimplemented
NB. https://code.jsoftware.com/wiki/Vocabulary/bdot
JVERSION
Engine: j902/j64/linux
Release-a: commercial/2020-12-05T11:11:55
Library: 9.02.08
Platform: Linux 64
Installer: unknown
InstallPath: /usr/share/j/9.02
Contact: www.jsoftware.com
_33 b.
When no files are mapped I expected showmap_jmf_'' to have rank 2.
Change would be nice but I don't expect it.
showmap_jmf_''
┌┬──┬──┬──┬──┬───┬──┬─┬───┬──┬─┬┐
│name│fn│sn│fh│mh│address│header│fsize│jmf│mt│msize│refs│
In simplest form, python string formatting replaces {} with the next
`stringified' argument. It's a good idea! This simple form has met
almost all my requirements. I've never needed the optional positional
specifiers, and sometimes used the specific formatting instructions that
can fit
On Sat, Feb 20, 2021 at 12:46 AM María Magdalena Mixuhca
wrote:
> I find this lack of beauty surprisingly disturbing:
>
> (^ j. 1p1)
> _1j1.22465e_16
For display I use round, defined and demonstrated
NB. rounds y to nearest x
round =: 1&$: :([ * [: (<.) 1r2 + %~)
29 round (*
JVERSION
Engine: j902/j64avx2/windows
Release-a: commercial/2020-12-05T13:36:01
Library: 9.02.08
Qt IDE: 1.9.1/5.12.10(5.12.10)
Platform: Win 64
Installer: J902 install
InstallPath: c:/program files/j902
Contact: www.jsoftware.com
Because debug'' rolls easily through my fingers, I assign
stargen@:(10 20"_)^:(<8)'' NB. perhaps you need ^: ?
0 0 0 0
1 6 5 1
1 4 11 1
0 7 4 1
0 1 9 1
1 7 6 1
0 7 13 1
0 6 19 1
|Date: Thu, 24 Dec 2020 10:47:47 +
|From: emacstheviking
|To: programm...@jsoftware.com
|Subject: [Jprogramming] Calling a function N times
|Message-ID:
|
The crash took place while developing part 2 sea monster jigsaw puzzle
code. I didn't think there was any reasonable way to reconstruct the
full j session (emacs probably stored it somewhere) and I thought it
rather lucky to recreate the problem at all. And by the way, rather
than "access
free invalid pointer
I haven't taken steps to isolate the problem.
Files in https://code.jsoftware.com/wiki/David_Lambert/Crash
$ ijconsole
JVERSION
Engine: j902/j64/linux
Release-a: commercial/2020-12-05T11:11:55
Library: 9.02.08
Platform: Linux 64
Installer: unknown
InstallPath:
Fine comb reading the (nu)voc sparse pages doesn't indicate. Is it true
that only the leading dimensions of an array can be sparse? For example f
and g produce different results when the only difference between them is
the choice of sparse axis. Thanks, Dave.
f=: 4 : 0
i=. #y
matrix representation of a graph failure
( https://adventofcode.com/2019/day/6 )
JVERSION
Engine: j901/j64avx2/windows
Release-c: commercial/2020-01-11T13:29:14
Library: 9.01.22
Platform: Win 64
Installer: J901 install
InstallPath: c:/program files/j901
Contact: www.jsoftware.com
I=:_2]\0
NB. two more ways to generate M
M -: >: i. 3 4
1
M -: 3 4 $ #\ i. 12
1
i. vector because there are many ways to organize integers directly
[: #\ i. because the interpreter, as I recall, now recognizes this as
"counting numbers". But not this for which lengths of the prefixes of
I recommend mathematica as a good choice for symbolic algebra, and keep a
Raspberry Pi which came with mathematica in the software distribution. For
simple problems wolframalpha.com suffices.
At wolframalpha.com try
Solve[(x^2+Log[y])^(1)==c,x]
and
Solve[(x^2+Log[y])^(1)==c,y]
Mathematica can
;and that there are only 3 solo (semi)vowels!
>
>Mike
>
>On 01/11/2020 17:17, David Lambert wrote:
>> NB. puzzle: substitute the digits 0-9 for the the letters
>> NB. to form a magic square of sum 99
>>
>> NB. (published puzzle hinted that y is 8 s
NB. puzzle: substitute the digits 0-9 for the the letters
NB. to form a magic square of sum 99
NB. (published puzzle hinted that y is 8 should you try it with pen
and paper)
_4 [\ ;:'ph h ne th na tc he e pn nx y pp a pt pv nc'
┌──┬──┬──┬──┐
│ph│h │ne│th│
├──┼──┼──┼──┤
Oops, sorry. I had parenthesized incorrectly. Thanks Pepe.
|. &. (":&.>) 324.567 23465 243345j4.65 4r5
+---+-+---+---+
|324.567|23465|243345j4.65|0.8|
+---+-+---+---+
|Date: Sun, 18 Oct 2020 15:09:20 -0400
|From: David Lambert
JVERSION
Engine: j902/j64avx2/linux
Beta-h: commercial/2020-10-03T19:37:53
Library: 9.02.05
Platform: Linux 64
Installer: J902 install
InstallPath: /home/lambertdw/downloads/installs/j902
Contact: www.jsoftware.com
NB. huh? 13 looks right to me.
8 -inv 5
3
NB. expected
8 *inv 5
NB. reversing digits of a number
NB. conversion of 4r5 to 8 makes sense to me
|. |.&.":324.567 23465 243345j4.65 4r5
765.423 56432 56.4j543342 8
NB. here I do not understand
(|.&.":)&>324.567 23465 243345j4.65 4r5
765.423 56432 56.4j543342 8
JVERSION
Engine:
Likewise, I try to avoid sameness. Code sprinkled with [ and ] may as
well contain x and y . Consequently I make heavy use of hooks and left
hooks (u~ v)~ . The community considers these stinky. Avoiding same
also leads to trains beginning (that is, the right hand side)
`noun)' rather
The proposal is for dyadic $ only.
Processing experimental data which sometimes arrives in irregular chunks
I often end up with a vector.
q: # data
helps me figure out how to match data to the experiment. The proposal
solves the case where one of the inner shape atoms is unknown.
If
Proposal to allow a single infinity in the shape. This model doesn't
consider empty arrays or other issues I'm unaware of. If infinity is in
the shape, the product of the defined ranks must be a factor of the tally
of y .
reshape=: dyad define
shape=. x
if. _ -.@e. shape do.
shape $ y
Yes, thank you Roger for this explanation of dyadic & which i've recently
been thinking about how to incorporate into my j programming.
|Date: Sun, 16 Aug 2020 21:00:42 + (UTC)
|From: "'Pascal Jasmin' via Programming"
|To: "programm...@jsoftware.com"
|Subject: Re: [Jprogramming] conditional
simplify tacks on a raveled zero rather than return a length zero list.
simplify 0
0
$ simplify 0
1
simplify ''
0
|Date: Fri, 31 Jul 2020 09:27:02 + (UTC)
|From: "'Bo Jacoby' via Programming"
|To: programming
|Subject: Re: [Jprogramming] ordinal fractions
|Message-ID:
"(Bo's) 1986-article on ordinal fractions may be of interest."
https://www.academia.edu/10031088/ORDINAL_FRACTIONS_-_the_algebra_of_data
Has anyone got an implementation?
Is `=' synonymous with `compatible'? If so, the following seems to work,
replacing for the literals with a vector.
NB.
deb
#~ ((+.) (1: |. (> http://www.jsoftware.com/forums.htm
020-01-11T13:29:14
Library: 9.01.22
Platform: Win 64
Installer: J901 install
InstallPath: c:/program files/j901
Contact: www.jsoftware.com
Thank you, David Lambert
--
For information about J forums see http://www.jsoftware.
I need an object to create an instance of same class.
Solution, unbox and re-box
value conew 0 {:: coname''
Is this a common need? Does putting boxopen into conew break code? If
not, we could use
value conew coname''
conew=: 3 : 0
c=. boxopen y NB. was c=.
nobar simplified?
nobar=: ({. , _2 {:\ ])@:":
|Date: Sun, 12 Jul 2020 16:07:11 -0400
|From: Arthur Anger
|To: programm...@jsoftware.com
|Subject: Re: [Jprogramming] Boxing Issues
|Message-ID:
|Content-Type: text/plain; charset=us-ascii
|
|Skip--
|For some years,I have been deleting
For small sets I'd start with the permutations, then select those I like.
This shows two anti-selectors, sum of pairs equal 3, and in r2 the bad guys
are directly spelled.
permutations=: A.~ !
Filter=: "1(#~`)(`:6)
restrictions=: 1 (-.@e.) 3 = 2&(+/\) NB. 1 where none of the length 2
+^:(0>.1+])
+^:(0 (>.) 1 + ])
There's probably a reason for parenthesized maximum?
Inspired by fixing ys at
http://rosettacode.org/wiki/Yellowstone_sequence#tacit
--
For information about J forums see
The proposed for_var: loop globally assigns var . I don't write a lot of
for loops, but sometimes I do, and sometimes these need debugged, and were
this available I'd use it.
--
For information about J forums see
I suppose it's been considered that fix doesn't expand the gerund. As a
consequence of not substituting we need to keep pertinent original
definitions, or edit the result of f. to substitute by hand. Carelessly
sharing a long sentence would in such a case result broken code. Are there
J lacks a long precision decimal type, probably because Ken realized that
base 10 is a silliness tied to our biology. Instead, j supports extended
rationals, which let us access many more numbers than I triple E 754
floating point. There are many problems which require computations to so
many
This is great! Maybe I whereDefined will help me diagnose my qt mysteries.
Meanwhile, let's remember one of the great joys of j that doesn't happen
with most other languages. We get the definition directly.
echo
0 0 $ 1!:2&2
Date: Sat, 7 Mar 2020 14:28:05 -0500
From: Devon McCormick
To:
My 7-smooth generator depends upon side effects. We cannot depend on u^:
when u has side effects including appreciable resource consumption. Work
around example
for.i.20 do. x u y end.
thanks
>Date: Mon, 2 Mar 2020 18:14:13 -0500
>From: Henry Rich
>To: programm...@jsoftware.com
>Subject: Re:
Why is the last number in this post 2 instead of 1 please?
FACTORS=: p: i. 4
HUMBLE=: 1
next=: 3 : 0
result=. <./ HUMBLE
i=. HUMBLE i. result
HUMBLE=: ~. (((i&{.) , (>:i)&}.) HUMBLE) , result * FACTORS
result
)
reset=: 3 :'0 $ HUMBLE=: 1'
next reset''
1
It's a wiki. Please right the ship as you see fit. New entries
http://rosettacode.org/wiki/Angles_(geometric),_normalization_and_conversion
http://rosettacode.org/wiki/Approximate_Equality
--
For information about J forums see
NB. Pixel 3, no response
NB. I'll try to keep my code tacit.
JVERSION
Engine: j901/j64/android
Release-e: commercial/2020-02-09T15:24:15
Library: 9.01.21
J Android: 1.4.08/10/29
Platform: Android 64 (arm64-v8a)
Installer: unknown
InstallPath:
data=:'abracadabra'
NB. whereas
1j_2 # data
|domain error
| 1j_2#data
NB. I've often wanted
_2 |. 1j2 # data
a b r a c a d a b r a
NB. because it aligns with
3 ": i.~ data NB. index from left
0 1 2 0 4 0 6 0 1 2 0
3 ":
nonce error would be a better message in my opinion. Well, as has been
said, this code is now in the library and if any of us can provide a
correct implementation, please to do so.
On 1/23/20 7:00 AM, programming-requ...@forums.jsoftware.com wrote:
Date: Thu, 23 Jan 2020 16:50:11 +0530
From:
Perhaps those /r should be \r ?
Date: Thu, 2 Jan 2020 12:18:00 +0100
From: Strale
To:programm...@jsoftware.com
Subject: [Jprogramming] J lib question
Message-ID:
Content-Type: text/plain; charset="UTF-8"
Hello
I am trying to mix J with C++ in Linux
I have included in my C++ project
Following j input causes limit error when 'noun verb'=. 0 17 , leaving
the instruction pointer unchanged (0). Uncommenting the line
NB. if.nv-:0 17 do. continue. end.
advances the limit error to nv matches 0 35
However the input 0 17 produces the result I expect:
decode^:_] 0
You might try the DOS command `start' as in
shell_jtask_ 'start c:/d/j901/user/temp/test1.ods'
Date: Fri, 13 Dec 2019 13:56:15 +
From: "'Mike Day' via Programming"
To:programm...@jsoftware.com
Subject: [Jprogramming] shell_jtask_ query
:
A=:1$.1e8 1e8
]A=:77 (<3 4) } A
3 4 │ 77
Ben
On Tue, 10 Dec 2019 at 15:57, David Lambert wrote:
I had expected the following assignment to succeed because (I thought)
this amend form is done in place in beta-s.
A=:1$.2e6 2e6;'';2*0
A=:(<;~1e6) 1:`[`]}A
|limit error
|
I had expected the following assignment to succeed because (I thought)
this amend form is done in place in beta-s.
A=:1$.2e6 2e6;'';2*0
A=:(<;~1e6) 1:`[`]}A
|limit error
| A=:(<;~100) 1:`[`]}A
Use case: AOC December 3.
JVERSION
Engine: j901/j64avx2/linux
Beta-s:
JVERSION
Engine: j901/j64avx2/linux
Beta-m: commercial/2019-10-02T09:16:34
Library: 9.01.08
Platform: Linux 64
Installer: unknown
InstallPath: /usr/share/j/9.01
Contact: www.jsoftware.com
[I4 =: =i.4
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
] XX=:<0 0
┌───┐
│0 0│
└───┘
Shearing =: 1 : 'm}'
This idea appeared in the forum. I haven't thought through the indexed
update, but were OpAssign a conjunction rather than an adverb...
OpAssign=: 1 :0
:
x~ =: x~ u y
)
A=: i.6
OpAssign=: 1 :0
:
(x) =: x~ u y
)
'A' +OpAssign 9
A
9 10 11 12 13 14
On 11/4/19 7:00 AM,
1 - 100 of 319 matches
Mail list logo