a
0 1 2
3 4 5
|."0 a
0 1 2
3 4 5
|."1 a
2 1 0
5 4 3
|."2 a
3 4 5
0 1 2
Skip Cave
Cave Consulting LLC
On Thu, Sep 25, 2014 at 12:38 AM, Chris Wright
wrote:
> Hi
>
> Real beginner here
>
> a =: 1 2 3 4
>
> |. a
>
> 4 3 2 1 NB. yep, all is well
>
>
>
>
> n
thanks Robert!
OK. boxes are atoms withb an empty shape.
I've looked at the docs and can't see where I could read to understand why
shape of
1 2 +/ i. 4
is 2 1 and not 1 2
thanks for your help!
Chris
On 25/09/2014 4:01 PM, "robert therriault" wrote:
> Hi Chris,
>
> Well there is information
Hi Chris,
Well there is information on the vocabulary page for Table
http://www.jsoftware.com/help/dictionary/d420.htm
also Nuvoc has good information on this verb
http://www.jsoftware.com/jwiki/Vocabulary/slash#dyadic
The actual shape of a box is empty since the box is an atom. In the case
Hi
Real beginner here
a =: 1 2 3 4
|. a
4 3 2 1 NB. yep, all is well
now:
a=: 2 3 $ i.6
a
0 1 2
3 4 5
1 |. a
3 4 5
0 1 2 NB. wow! looks like "rotate up", to me
(intermission while I find out about rank,axis and frame!)
oh ok
1 0 |. a
3 4 5
0 1 2 NB.
Hi
Could I work out from the docs that
< 1 2 +/ i. 4
┌───┐
│1 2 3 4│
│2 3 4 5│
└───┘
will give the above (2 1) shape result
and not a (1 2) result like below?
┌───┬───┐
│1 2 3 4│2 3 4 5│
└───┴───┘
With the (2,1) it's obvious that two 1-cells are returned,
form locale can be numbered locale since day 1. Specifically
form locale is the current locale when _executing_ wd'pc' cmd.
try the following script, (untested)
coclass 'foo'
create=: 3 : 0
wd'pc bar closeok;cc btn button;pshow'
)
bar_btn_button=: 3 : 0
smoutput coname''
)
cocurrent'base'
''co
is there a way to change syslocalep for a form? change it to a numbered
locale? in j803?
I am referring to syslocalep.
it would simplify having an object create its own form, and handling multiple
instances.
--
For information
I would keep in mind that calendars have a political aspect, and some
political bodies will sometimes create arbitrary calendars (I remember
a 41st of September used by the U.S. Congress a few decades ago - they
had set themselves a deadline where they needed to resolve an issue
before the end of S
It seems to work when I use a slightly more reasonable input, e.g.
t=. 1000$'Now is the time for all goode men to come to the aid of the
party '
6!:2 't -: (3!:2) zlib_uncompress zlib_compress (3!:1) t'
0.0140519
or even a less reasonable one:
$t=. a.{~1e5?@$$a.
10
6!:2 't -: (
I certainly see your point Linda,
The tests that I run my program through are an example of creating triggers to
will reveal when my programming has created errors. If I was designing a
language that could be used in as wide a variety of ways as J, I think that
knowing when to generate meaningf
Using J often causes error message and they are very helpful. They cause a
reassessment of the statement in question. Most often it causes a quick fix
as you notice the problem. Since there is reasonalble response to todayno
2002 2 29
I believe an error message would cause me to find the problem.
Brian
>An interesting piece of tech which promises to exceed the grasp of the iPads
>of the world is ~nvidia-cb-vmware. The K1 would be a very powerful client for
>graphic intensive services.
>my CB is running a crouton of Xbuntu as a server with the client being the
>browser on the client (or
Joe,
I am sorry not to have replied in so long. I thought I had because I
remember last replying to the effect that I had tried your last idea and I
somehow thought this most recent code was no different, but I now see the
key line:
jev_get =: create
That did work and the result is almost perfe
Hi LInda,
Seems okay to me, since
(2001 3 1) diff 2001 2 28 NB. non leap year
1
(2000 3 1) diff 2000 2 28 NB. leap year
2
diff=: 13 :'(todayno x)-todayno y'
(2005 3 1) diff 2004 2 28
367
(2004 3 1) diff 2003 2 28
367
NB. both these intervals contain 2004 2 29 because of a leap
I began to consider leap year, and I am basing my answers on todayno . But
I think I am getting errors based on it. Does this seem ok to you?
diff=: 13 :'(todayno x)-todayno y'
(2005 3 1) diff 2004 2 29
366
(2004 3 1) diff 2003 2 29
366
(2003 3 1) diff 2002 2 29
15 matches
Mail list logo