David and Pascal,
Yes insert produces a very concise solution that uses J's strength, too.
Thank you,
On Mon, Jul 13, 2015 at 7:17 PM, David Lambert wrote:
> Tossing insert into the pot of stone soup:
>
>((-~ {.) , ])/1 2 1 2 100 NB. ,.@:|.@:(expression)
> 94 95 97 98 100
>
>
>
>
>> --
Pepe,
This solution seems to be inspired by Raul's automated version, but I
cannot be sure because the "usual definition"s are a little new and opaque
to me. Clearly it works nicely though.
Thank you,
On Mon, Jul 13, 2015 at 6:26 PM, Jose Mario Quintana <
jose.mario.quint...@gmail.com> wrote:
Ric,
This comes very close to the ideal I was seeking.
Great innovation!
On Mon, Jul 13, 2015 at 4:35 PM, Tikkanz wrote:
> The original description talks about alternatively subtracting 2, then 1,
> it doesn't mention detecting odd or even numbers (although the example code
> does). So I'm not
KUAL provides extensions, one of them is Kterm which is a simple terminal
but it allows you to issue Linux commands. Is that what you are lacking?
(After that one can connect remotely wirelessly via VNC or PuTTY.) Did
you use KUAL?
On Monday, July 13, 2015, Devon McCormick wrote:
> I did alre
I did already root my Paperwhite and it's supposed to be Linux underneath
but I haven't figured out how to remote in yet and there's no obvious
keyboard, so I don't really know how to interact with it.
On Mon, Jul 13, 2015 at 6:10 PM, Jose Mario Quintana <
jose.mario.quint...@gmail.com> wrote:
>
Mike, First, I put the image into word or photoshop and then stretch it to a
full page before printing it. The tabs seem ok in size. I just can't get my
fingers inside the cube for the last one or two.
I went back and got your 7/7 version and each time I am understanding how it
works a little b
or
(-~ 1!:2&2)/ 1 2 1 2 100
100
98
97
95
94
- Original Message -
From: David Lambert
To: programming
Cc:
Sent: Monday, July 13, 2015 7:17 PM
Subject: Re: [Jprogramming] Powerize a while.
Tossing insert into the pot of stone soup:
((-~ {.) , ])/1 2 1 2 100 NB. ,.@:|.@:(
Tossing insert into the pot of stone soup:
((-~ {.) , ])/1 2 1 2 100 NB. ,.@:|.@:(expression)
94 95 97 98 100
Date: Mon, 13 Jul 2015 12:39:46 -0400
From: Brian Schott
To: Programming forum
Subject: [Jprogramming] Powerize a while.
Message-ID:
Content-Type: text/plain; charset=UT
Actually, I my mind I thought it was from left to right but the exercise is
from right to left. So,
ce=. &([ train@:, an@:]) NB. It is even easier than I thought!
0 0$(19$E`O)ce 100
98
97
95
94
92
91
89
88
86
85
83
82
80
79
77
76
74
73
71
For (19$E`O) it makes no difference since it is a
Greg and Devon, I am told that if you can root it then chances are you can
run J.
Devon, KUAL is used to root the KT and it seems to work also for the PW;
you would have to try it. For JHS I am using a version of the SkipStone
browser also via KUAL, a bonus is that in addition to be a client of a
A non-trivial meta-programming exercise? That is a cheating opportunity :)
train=. (<'`:')(0:`)(,^:)&6 NB. Usual definition
an=. <@:((":0) ,&< ])NB. Usual definition
ce=. &(|.@:[ train@:, an@:]) NB. Actual coding for this exercise (maybe
it was trivial after all)
0 0$(19$E`
Pepe -
This is interesting but I don't think it helps someone like me with a
Kindle Paperwhite as I believe the underlying OS is different. I do like
the Kindle's size - it has a pretty big screen but still fits into a jacket
pocket.
On Mon, Jul 13, 2015 at 4:35 PM, greg heil wrote:
> Jose
>
>
The original description talks about alternatively subtracting 2, then 1,
it doesn't mention detecting odd or even numbers (although the example code
does). So I'm not sure whether the following is acceptable, but it is an
example that uses power and a bit of array thinking.
(] , 2 3 -~ {:)^:(10
Jose
>That is very cool that you got it on a E-Ink display device!
>i do not have any attraction to the Amazon ecosystem but if some one manages
>to port it to the BN Nook (which i have) or the Kobo Glo (being remaindered at
>attractive prices and having an SD interface) i am all ears:)
greg
~
I recently inherited a Kindle Touch. Of course, to be really useful it
would have to run J. Thanks to the efforts of Thomas and Marshall now it
does:
6!:2 '%. ?50 50$1000'
0.0313126
J can run under both jconsole and jhs (plot works). If there is enough
interest for playing with J for hours
Or:
f=: 13 :',.x,x+-/"1((<:2#y)$_2 1)*(i.<:y)>:/i.<:y'
100 f 20
100
98
103
95
106
92
109
89
112
86
115
83
118
80
121
77
124
74
127
71
f
[: ,. [ , [ + [: -/"1 (_2 1 $~ [: <: 2 # ]) * ([: i. [: <: ]) >:/ [: i. [:
<: ]
Linda
-Original Message-
From: programming-boun.
s=:100
n=:20
,.s,s+-/"1((<:2#n)$_2 1)*(i.<:n)>:/i.<:n
100
98
103
95
106
92
109
89
112
86
115
83
118
80
121
77
124
74
127
71
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Brian Scho
Yes, it's very satisfying, isn't it.
Mind you, your sticky tabs
probably need to have a
more practical size when N is >> 5 !
Did you
see my more recent offering re user-specified
nets? (7/7/15)
Perhaps
not elementary enough for your demonstration
project/s.
Cheers,
Mike
On 13/07/20
Raul,
Your explanation is great. To understand it better I tried the following,
which worked nicely. My original approach, before the explicit definition
was to us EE and OO, shown below. But apparently smoutput causes the
sequence of results to halt and I needed your 1!:2&2 idea. Your tacitizing
Actually, thinking about this, it would be nice to have an adverb
which worked something like `:6 but which gave the effect of running
the gerunds in sequence (from right to left). That way, I could
encapsulate the details of how this to encode the train and then
ignore those details after that.
I
This is not a good candidate for the power conjunction.
You could do it with the power conjunction but it's not a good fit.
The reasons for this are:
(1) You have two independent values you are working with - the value
you use for flow control is independent of the value you are passing
to your
an easier version if you are checking whether y is odd instead of n
(-&1`(-&2)@.(2&|))^:(<5) ] 100
100 99 97 95 93
this doesn't match your output, but does handle a calculation based on n
pD =: 1!:2&2
(<:@:{. (, pD) ((1 -~ {:)`(2 -~ {:))@.(2 | {:))^:(0 < {.)^:_ ] 20 100
- Original Mes
I have the following verb t and wonder if anyone would like to show how it
could be more elegantly defined (using the Power conjunction?) I would
enjoy learning your result.
The intent of t is to alternatively subtract 1 or 2 from a positive number
showing the intermediate results of say n=20 subt
Mike, A while ago I saw your color cube patter with 50x50 faces. I finally
got mine to accept N faces. I'm very happy that you encouraged me to
continue!
load 'viewmat'
ColorCube=: 3 : 0
N=:y
G=:<.(i.N)*255%<: N
A=:#:i.8
B=:(((<:N)#0),G),.G,(<:N)#255
BIGBOX=:<"2(|."2)1 0 2{"1(|:"2)(8 3 ,<:2*N)$,|:
24 matches
Mail list logo