On 7/19/2012 Bo Jacoby wrote this example for complex roots which I call jr:
Is this example useful to this discussion.
(_1^+:(%~i.))4
1 0j1 _1 0j_1
jr=:_1^+:(%~i.)
jr 4
1 0j1 _1 0j_1
jr ttem
3 : 0
q0=. (+:(%~ i.))y
(_1) ^ q0
)
jr
_1 ^ +:(%~ i.)
a=:%~ i.
a ttem
3 : '(%~
. Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Monday, July 23, 2012 8:36 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Challenge 13 Plot Alot
Thanks for your
Here's what I think is happening:
'
|open quote
| '
| ^
'
|open quote
| '
| ^
'
|open quote
| '
| ^
''
Finally you give it you what you want between the quotes, which is actually
nothing.
'cat
|open quote
| 'cat
| ^
''
This time you give
Adjacent is important.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Brian Schott
Sent: Monday, August 13, 2012 10:44 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Amend adjacent
J7 in Chrome
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, August 16, 2012 11:11 AM
To: programm...@jsoftware.com
Subject: [Jprogramming] Magically Make a Plot Disappear
Put
this noun gets defined, but it
seems to be created the first time a plot is drawn. However if it
is subsequently erased it isn't recreated when plot is run a second time.
On Fri, Aug 17, 2012 at 3:16 AM, Linda Alvord lindaalv...@verizon.net
wrote:
J7 in Chrome
-Original Message
I had to reinstall J7 and I can no longer update jal. I get three messages
(many times)
To run as Administrator, right-click the J icon, select Run as... and then
select Adminstrator.
Updating server catalog...
Unable to run Package Manager, as you do not have access to the installation
Ewart's function in tacit version:
trian=: 13 :'-:y*:y'
indsy=: 13 :'(.|:i.y)+/tri i.y'
indsy 4
0 1 3 6
1 2 4 7
2 3 5 8
3 4 6 9
trian
[: -: ] * :
indsy
([: . [: |: i.) +/ [: tri i.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
Thanks Ric! You forced me to be careful and retrace my steps (after 4 or 5
earlier tries). All is well now. I'm using Vista and I tried to indicate
where I wanted to install during the process of installing J701. That is
where I could only install jhs in Program Files.
I finally saw
that tacit translates to explicit and then how 13
: retranslates them to another tacit version without hooks.
On Thu, Aug 23, 2012 at 12:45 PM, Linda Alvord lindaalv...@verizon.net
wrote:
Ewart's function in tacit version:
trian=: 13 :'-:y*:y'
indsy=: 13 :'(.|:i.y)+/tri i.y'
indsy 4
0
[: -: ] * :
As Bill suggests, 13 : '' is a useful tool for understanding how to convert
explicit to tacit, but it won't necessarily generate optimal
tacit definitions.
On Thu, Aug 23, 2012 at 3:29 PM, Linda Alvord lindaalv...@verizon.net
wrote:
If you are able to use 5!:4 and get a tree, is that a way
I would write it from right to left:
s=:2
e=:5
i=:0.25
s + i * i. 1 + (e-s) % i
x=:2 5
y=:i
--/x
3
y%~--/x
12
(0{x)+y*i.:y%~--/x
2 2.25 2.5 2.75 3 3.25 3.5 3.75 4 4.25 4.5 4.75 5
f=: 13 :'(0{x)+y*i.:y%~--/x'
2 5 f 0.25
2 2.25 2.5 2.75 3 3.25 3.5
is -:@(*:)
the main difference in this case 13 : tends use [: to form a train of fork but
human tends to form compound verb using @ That said, certainly some prefer [:
over @.
IMO 13 : is similar to google translate, it is useful but the result could be
aweful.
Чтв, 23 Авг 2012, Linda Alvord писал(а):
If you
randStrngB is clearest.
randStrngC=: [ {~ [: ? ] $ [: # [
randStrngX=: (?@$ #) { ]
randStrngG=: ((?@$ #) { ])~
randStrngB=: 4 : '(? y $ #x) { x'
On Thu, Aug 23, 2012 at 10:37 PM, Linda Alvord lindaalv...@verizon.net wrote:
She went to the store and bought apples and bananas and oranges and grapes
...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, August 23, 2012 9:05 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Creating random symmetric matrices
What is the advantage of a dyad definition?
randStringB=: 4 : '(? y $ #x) { x
Of Linda Alvord
Sent: Thursday, August 23, 2012 9:16 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Creating random symmetric matrices
I just saw the advantage of the dyad definition. You can see where the
variables are.
Now my question is Why would you want or need a tacit
Also,
's e i'=:5 8 0.27
i (],(+{:))^:((e-i):{:@])^:_ s
5 5.27 5.54 5.81 6.08 6.35 6.62 6.89 7.16 7.43 7.7 7.97
s+ i* i.1+ .(e-s)%i
5 5.27 5.54 5.81 6.08 6.35 6.62 6.89 7.16 7.43 7.7 7.97
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
A strange early morning encounter.
'.'-:}.'t.'
0
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Jose Mario
Quintana
Sent: Friday, August 24, 2012 5:29 PM
To: programm...@jsoftware.com
Subject:
My question is from an earlier version:
1j1#1|:(25{.(u:,2#65 97+/i.26)(:@i.}.[)])0 'L'
M N O P Q R S T U V W X Y Z A B C D E F G H I J K
In this phrase, what does the identity [ stand for?
:@i.}.[
I thought it was for 'L' but that can't be since 'L.' causes no error in
the
I'm getting closer to understanding this all the time. This works.
(25{.]}.~1+i.~)(u:,2#65 97+/i.26)0 'L'
MNOPQRSTUVWXYZABCDEFGHIJK
When I replace ] with 'L' gives a scripted result.
(25{.'L'}.~1+i.~)(u:,2#65 97+/i.26)0
Also,
f=: 13 :'(25{.y}.~1+i.~)(u:,2#65 97+/i.26)0'
this every time I want to use the
result of a previous computation called A .
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Saturday, September 01, 2012 7:26 PM
To: programm
.
On Sun, Sep 2, 2012 at 6:48 PM, Linda Alvord lindaalv...@verizon.netwrote:
I finally think I know what I don't know. I want to turn table A
into a scalar (which it happens to look like).
A
4
$A
1 1
B=:3 5 7
A+B
|length error
| A+B
(,A)+B
|length error
Roger Hui knows the path that got me here.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Monday, September 03, 2012 4:00 AM
To: programm...@jsoftware.com
Subject: Re
-
Van: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] Namens Linda Alvord
Verzonden: vrijdag 7 september 2012 12:50
Aan: 'Programming forum'
Onderwerp: Re: [Jprogramming] Flattening a list containing boxed elements
Did I miss this somewhere
' ( x) , ( y)'
NB. Rank zero here is key
; z glue0 ' '
alpha bravo chuck
-Dan
Please excuse typos; composed on a handheld device.
On Sep 7, 2012, at 11:22 AM, Linda Alvord lindaalv...@verizon.net wrote:
Now what am I missing?
; z ,. ' '
alpha bravo
...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Friday, September 07, 2012 4:07 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Flattening a list containing boxed elements
Thanks, After I sent the message it rankled me that it might
Following your moral, I NEVER make my own profile and instead use what comes
with the package of J. If I want to change things I must do it each time
manually so I know I won't forget at some point that I changed it myself and
it won't work the same way if someone else uses it.
This probably
Here's a little comic relief!
;_1 t
alph
bravo
chuck
f=: 13 :';_1 y'
f
;_1
f t
alph
bravo
chuck
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Monday, September 10
name Sam.
The [ and ] inside Sam refer to Sam's arguments, which may not be the same as
the arguments to takecut.
Kip Murray
Sent from my iPad
On Sep 19, 2012, at 9:25 PM, Linda Alvord lindaalv...@verizon.net wrote:
Raul, What causes the problem when you replace [ with 2 3 1 1 and ]
by i
the edit area. Not as good as a
different background color but I didn't want to delay getting codemirror
available.
On Wed, Oct 3, 2012 at 5:10 AM, Linda Alvord lindaalv...@verizon.net
wrote:
In J7 on Chrome using Vista, now that the code has numbers and
different colors within the code
the ⍴ (rho).
On Thu, Oct 4, 2012 at 6:35 AM, Linda Alvord lindaalv...@verizon.netwrote:
This is the crux of the problem:
1,''
1
$1
$1,''
1
What is the simplest way to make the shape of 1,'' be empty?
Linda
for example, would also get
you an atomic 1 in this case)..
--
Raul
On Thu, Oct 4, 2012 at 9:35 AM, Linda Alvord lindaalv...@verizon.net
wrote:
This is the crux of the problem:
1,''
1
$1
$1,''
1
What is the simplest way to make the shape of 1,'' be empty?
Linda
-Original
is to returns the input on error:
rad=: (#~ [: -. 0 , 2 -:/\ ])@|: :: ]
rad ''
rad B
3 2
5 1
4 6
On Thu, Oct 4, 2012 at 6:41 PM, Linda Alvord lindaalv...@verizon.net
wrote:
rad=: 13 :'(A=:1,-. 2-:/\|:y)#1 y' NB. Remove adjacent
duplicates
]B=:2 4 $3 5 5 4 2 1 1 6
3 5 5
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, October 04, 2012 8:12 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Why the length error?
I think I only need ifany . But I
] Why the length error?
Perhaps:
rad=: (#~ 1 - ] -:1 |.!.__~1).|:
Note that I have assumed that you will not be using negative infinity in B.
--
Raul
On Thu, Oct 4, 2012 at 8:12 PM, Linda Alvord lindaalv...@verizon.net
wrote:
I think I only need ifany . But I could call it ifempty
...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, October 04, 2012 8:12 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Why the length error?
I think I only need ifany . But I could call it ifempty .
ifany
I have no trouble with /B so I guess the problem is just writing adverbs.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Thursday, October 04, 2012 11:09 PM
To: programm
with it , or that you don't get a syntax error when you
execute it?
On Oct 5, 2012 4:24 PM, Linda Alvord lindaalv...@verizon.net wrote:
I have no trouble with /B so I guess the problem is just writing adverbs.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com [mailto
] Why the length error?
growing is a gerund.
--
Raul
On Fri, Oct 5, 2012 at 2:56 AM, Linda Alvord lindaalv...@verizon.net wrote:
The concept of using adverbs makes sense, and they are handy. I can't say as
much for gerunds. I move around a lot growing up and I missed parts of speech
and had
:44 PM, Linda Alvord lindaalv...@verizon.net wrote:
Ric, Is there a way to modify your function so the result of rad B
will
be:
3 5 4
2 1 6
Linda
--
For information about J forums see http://www.jsoftware.com/forums.htm
(;i{..1) ;.1 az
┌───┬──┬─┬┬─┬───┐
│abc│de│fghij│klmnopqr│stuvw│xyz│
└───┴──┴─┴┴─┴───┘
]c=:i{..1
┌─┬───┬─┬───┬─
┬─┐
│1 0 0│1 0│1 0 0 0 0│1 0 0 0 0 0 0 0│1 0 0 0 0│1 0 0│
└─┴───┴─┴───┴─
I hope this is easier to read.
az=:'abcdefghijklmnopqrstuvwxyz'
i=:3 2 5 8 5 3
(;i{..1) ;.1 az
┌───┬──┬─┬┬─┬───┐
│abc│de│fghij│klmnopqr│stuvw│xyz│
└───┴──┴─┴┴─┴───┘
]c=:i{..1
d=:(i){.1
c-:d
0
e=:(0 i){.1
c-:e
0
f=:0(0){.1
c-:f
0
trying to come up with a different but
equivalent way of formulating
c=:i{..1
Here is one
d=: i (@{.0 ) 1
c-:d
1
Ric
On Oct 10, 2012 7:41 PM, Linda Alvord lindaalv...@verizon.net wrote:
I hope this is easier to read.
az=:'abcdefghijklmnopqrstuvwxyz'
i=:3 2 5 8 5 3
(;i{..1
...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Alex
Giannakopoulos
Sent: Monday, October 15, 2012 2:21 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] another example of 'under'
On 15 October 2012 06:37, Linda Alvord lindaalv...@verizon.net wrote:
Sometimes you
A sad story:
]'A B'=:3|L:0(([:i.)1)3 5,:5 4
--T---┐
│0 1 2 0 1│0 1 2 0│
│2 0 1 2 0│1 2 0 1│
│1 2 0 1 2│2 0 1 2│
│ │0 1 2 0│
│ │1 2 0 1│
L-+
f=: 13 :'(([:i.)1)y'
f
([: i.)1
f C=:3 5,:5 4
---T---┐
│ 0 1 2 3 4│ 0 1 2
Would you like this more? I just modified your sentence a little.
j=: 13 :' ;x @((D=:,1}.)1#~(C=:={:|.)1)1 _ y'
j
4 : ' ;x @((D=:,1}.)1#~(C=:={:|.)1)1 _ y'
f=: 13 :';x ([:(,1}.)1#~(={:|.)1)1 _ y'
f
[: ; ([: (,1 }.)1 #~ (={: |.)1)1 _
A j B
0 1 2 0 1 2 0 1
0 1 2 0 1 2 0 1
2
│
└──┘
+/ f 3 4 5
50
+/ g 3 4 5
|syntax error: g
| +/g 3 4 5
+/ h 3 4 5
50
[1] http://www.jsoftware.com/docs/help701/dictionary/d310n.htm
On Tue, Oct 16, 2012 at 8:55 PM, Linda Alvord lindaalv...@verizon.net wrote:
A sad story:
]'A B'=:3|L:0(([:i.)1)3 5,:5 4
--T
the use caps. Also the alternative could cause the use of lots of
parenthesis. Not elegant according to R.E.Boss's definition with which I do
agree.
On 17-10-12 08:14, Linda Alvord wrote:
Would you like this more? I just modified your sentence a little.
j=: 13 :' ;x @((D=:,1}.)1#~(C=:={:|.)1)1
. Are these typos?
About 4 :
dictionary says
4 : n dyad only verb
On 17-10-12 13:44, Linda Alvord wrote:
Both A j B and A f B have the same result:
j=: 13 :' ;x@((D=:,1}.)1#~(C=:={:|.)1)1 _ y'
f=: 13 :';x ([:(,1}.)1#~(={:|.)1)1 _ y'
Both are verbs:
type 'j
'
G B
H B
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Wednesday, October 17, 2012 6:40 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] stitching matrices
The C and D
: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Friday, October 19, 2012 3:50 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] stitching matrices
Here is an ijis script that is puzzling me. In the next e-mail
] stitching matrices
On Fri, Oct 19, 2012 at 4:00 AM, Linda Alvord lindaalv...@verizon.net
wrote:
G B
1 1 1 1 1
H B
ran with error:
|domain error: H
| H B
|[-30] c:\users\owner\j701-user\temp\37.ijs
G WORKS! H DOESN'T!
How can I write the function H without and get 1 1 1 1
_
Thanks Raul for the coaching.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Friday, October 19, 2012 10:08 AM
To: programm...@jsoftware.com
Subject: Re
Identical?
f =: ={:
g =: [:={:
1 4 f 2 3 4
1
1 4 g 2 3 4
|domain error: g
| 1 4 g 2 3 4
Kip Murray
Sent from my iPad
On Oct 20, 2012, at 1:11 AM, Linda Alvord lindaalv...@verizon.net wrote:
Here's a problem that bothers me about this example before I leave it.
First
Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Saturday, October 20, 2012 2:12 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] stitching matrices
Here's a problem that bothers me about
On Sat, Oct 20, 2012 at 2:57 AM, Linda Alvord lindaalv...@verizon.net wrote:
I am using them monadically.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of km
Sent: Saturday, October 20, 2012 2
be equivalent definitions:
f=: ={: :[:
g=: ([:={:) :[:
Here, you would be declaring that these verbs have empty dyadic domains.
You could even get away with
g=: [:={: :[:
(Do you see why?)
--
Raul
On Sat, Oct 20, 2012 at 2:57 AM, Linda Alvord lindaalv...@verizon.net wrote:
I am
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Sunday, October 21, 2012 4:22 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] stitching matrices
heading downhill
for f and g, these
would be equivalent definitions:
f=: ={: :[:
g=: ([:={:) :[:
Here, you would be declaring that these verbs have empty dyadic domains.
You could even get away with
g=: [:={: :[:
(Do you see why?)
--
Raul
On Sat, Oct 20, 2012 at 2:57 AM, Linda Alvord lindaalv
Readonly in blue is back! Thanks, I missed it.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Eric Iverson
Sent: Sunday, October 21, 2012 5:21 PM
To: Programming forum
Subject: [Jprogramming] JHS
=: ={: :[:
g=: ([:={:) :[:
Here, you would be declaring that these verbs have empty dyadic domains.
You could even get away with
g=: [:={: :[:
(Do you see why?)
--
Raul
On Sat, Oct 20, 2012 at 2:57 AM, Linda Alvord lindaalv...@verizon.net wrote:
I am using them monadically.
Linda
-Original
1 2 0 1 2 0 1 2
zlav f.
[: ; ([: (([: {: [) = [: {: [: |. ])1 # (, }.)1)1 _
On 22-10-12 03:46, Linda Alvord wrote:
Check your message below, Raul, which indicate that both m and n should work
on your new version:
i=:[: ;([: (={: |.)1 # (, }.)1)1 _
i
[: ; ([: (={: |.)1
, 2012 11:37 AM
To: programming@jsoftware.cosem
Subject: [Jprogramming] J and education (was: stitching matrices)
On Tue, Oct 23, 2012 at 9:57 AM, Linda Alvord lindaalv...@verizon.net
wrote:
What I am trying to do is sort out a sequence for developing concepts
in mathematics education. A starting
...@forums.jsoftware.com] On Behalf Of Henry Rich
Sent: Tuesday, October 23, 2012 4:28 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] stitching matrices
Just remember that uv y IS NOT u v y .
u:v y IS u v y .
uv y is the same as u:vv y .
Henry Rich
On 10/23/2012 9:57 AM, Linda Alvord wrote
'
┌──┬─┬──┐
│[:│=│{:│
└──┴─┴──┘
Shouldn’t g look like a hook?
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Wednesday, October 24, 2012 3:28 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming
] stitching matrices
Both of the definitions below are called monadic, because the verb v and the
verb u are executed monadically.
On Wed, Oct 24, 2012 at 3:27 AM, Linda Alvord lindaalv...@verizon.net wrote:
mv y ↔ m v yThis is the definition of bond (monadic)
uv y ↔ u v y
] stitching matrices
Compare the diagrams for hook and capped fork at
http://www.jsoftware.com/docs/help701/dictionary/dictf.htm
Kip Murray
Sent from my iPad
On Oct 24, 2012, at 2:47 AM, Linda Alvord lindaalv...@verizon.net wrote:
Now that I understand it better, here’s my simplified tree
T and j are slow, but the tacit version is nice.
'A B'=:3|L:0(([:i.)1)3 5,:5 4
BA=: 600$A
BB=: (5r3*600)$B
ts=: 6!:2 , 7!:2@]
ts 'P=:BA ;@:(((={: |.)1 @# (,}.)1)1 _) BB'
1.01695 1.65962e7
ts 'Q=:BA ;@:(((={: |.)1 @# (,1}.1))1 _) BB'
0.601724 1.65965e7
ts 'R=:BA ;@:(((={:1 |.1)
] On Behalf Of Linda Alvord
Sent: Thursday, October 25, 2012 9:23 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Manipulating ranks (was: stitching matrices)
T and j are slow, but the tacit version is nice.
'A B'=:3|L:0(([:i.)1)3 5,:5 4
BA=: 600$A
BB=: (5r3*600)$B
ts=: 6!:2
I noticed you suggested deb . I was wondering if the definition f is not
accounting for some case I have neglected?
deb
#~ (+. (1: |. ( /\)))@(' '~:)
f=: 13 :'y#~ (1|.'' ''~:y)+.'' ''~:y'
f
] #~ (1 |. ' ' ~: ]) +. ' ' ~: ]
f 'fds343434 s 2e2d'
fds34 3434 s 2e2d
to a prime.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Monday, October 29, 2012 4:36 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Collatz and stuff
Kip
I am just getting started with this thread and I don't know Danish or Unicode,
but...
t=:(a:-.~;._2)@,' '
t k
┌─┐
│blåbærgrød│
└─┘
tt=:(;._2)@,' '
tt k
┌─┐
│blåbærgrød│
└─┘
(t k)-:tt k
1
Does tt miss something important?
If not
Somehow I changed something and I think this is incorrect.
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Wednesday, October 31, 2012 12:37 AM
To: programm...@jsoftware.com
. Resolved!
Or,
[: #;._1 ' ',]
--
Raul
On Wednesday, October 31, 2012, Linda Alvord lindaalv...@verizon.net
wrote:
Here's where I was heading:
f=: 13 :'#;._2 '' '',~ y'
f
[: #;._2 ' ' ,~ ]
f 'blåbærgrød crème fraise '
13 1 6 6 0 0 0
g=: 13 :'#;._2 '' '',~ 7 u: y'
g
|
+--+
Cheers, bob
On 2012-10-30, at 9:36 PM, Linda Alvord wrote:
I am just getting started with this thread and I don't know Danish or
Unicode, but...
t=:(a:-.~;._2)@,' '
t k
┌─┐
│blåbærgrød│
└─┘
tt=:(;._2)@,' '
tt k
┌─┐
│blåbærgrød
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Taylor series
On Thu, Nov 1, 2012 at 5:12 AM, Linda Alvord lindaalv...@verizon.net
wrote:
Trudging back to my days in calculus I go to the dictionary..
f=: 1 2 1p.
g=: 1 3 3 1p.
x=: 10%~i=: i.8
]c=: (f*g) t. i
1 5 10 10 5 1 0 0
: [Jprogramming] Taylor series
On Fri, Nov 2, 2012 at 5:18 AM, Linda Alvord lindaalv...@verizon.net
wrote:
Raul, I haven't gotten to t. yet, but I did manage not to use (f*g) or
p.
f=: 1 2 1p.
g=: 1 3 3 1p.
x=: 10%~i=: i.8
]c=: (f*g) t. iNB. This still has problems
1 5 10 10 5 1 0
I
10 5 1 0 0
What problems?
1 2 1 +//.@:(*/) 1 3 3 1
1 5 10 10 5 1
Thanks,
--
Raul
--
For information about J forums see http://www.jsoftware.com/forums.htm
I can't seem to stop myself from answering stylequestions:
I learned APL from Ken and was greatly influenced his notion of notation as
a tool of thght. To me he was a mathematician first. So look at the start
of Taylor Coefficients as influenced by some of Raul's rules:
X=:10%~I=:i.8
I
0
3 :'y`:6
y' 3 :'y`:6 y'`''
---┐
│--T--┐│
││:│--T--┐││
││ ││--T-┐│--T--┐│││
││ │││0│3│││0│y`:6 y
││ ││L-+--│L-+---│││
││ │L-+---││
│L-+---│
L---
JVERSION
Engine:
You explain what ^t. does, but what does t. do?
t. i.6
|syntax error
| t.i.
1 t. i.6
|length error
| 1 t.i.6
^t.
%@!
t.
t.
Linda
-Original Message-
From: programming-boun...@jsoftware.com
[mailto:programming-boun...@jsoftware.com] On Behalf Of Raul Miller
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Michal D.
Sent: Sunday, November 04, 2012 11:26 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Arc consistency in J
variables. In other
F,G
)
T ''
Linda
-Original Mesesageh
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftrware.com] On Behalf Of Linda Alvord
Sent: Monday, November 05, 2012 5:12 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Arc consistency in J
I
of it's possible values set.
Which is different from what you suggest because you may get a row of all
zeros which is already inconsistent and so there is no point in running arc
consistency on it.
Cheers,
Mike
On Mon, Nov 5, 2012 at 2:11 AM, Linda Alvord lindaalv...@verizon.netwrote:
I just began
Michal, Once you have what you want, you can use some tools to study it:
Change from a Noun to a verb, view its tacit version and apply it to data:
dd=: 13 :'(y%2) (?]) x$y'
dd
(2 %~ ]) [: (? ]) $
7 dd 3
1 1 0
1 0 1
0 1 1
0 1 1
0 1 1
0 1 1
0 1 1
Both the boxed version
(^@j. = cos + 0j1 * sin) 1 2 3 0.1j_0.2
1 1 1 1
(^j. = cos + 0j1 * sin) 1 2 3 0.1j_0.2
1 1 1 1
^j.
^ j.
This made a connection with trigonometry relationships. I now have a little
glimmer about t. but I must admit it is still fuzzy.
^t.
%@!
Linda
-Original
'noun verb verb' is a fork and is interpreted as 'noun_ verb verb' (noun_
is a constant verb whose result is noun). http://keiapl.org/anec/#nvv
When I said:
Change from a Noun to a verb, view its tacit version and apply it to
data:
dd=: 13 :'(y%2) (?]) x$y'
I should have said:
Change
ee=:(]%2) ?~@$
ee
0.5 ?~@$
ff=: 13 :'0.5 ?~x$y'
ff
0.5 [: ?~ $
5 ff 8
0 0 0 0 1 0 0 0
0 0 0 0 0 0 0 1
0 0 0 0 1 0 0 0
0 1 0 0 0 0 0 0
0 0 1 0 0 0 0 0
J is so smart, it eliminate the need for *
hh=: 13 :' ?~x$y'
hh
[: ?~ $
]A=:5 hh 8
4 7 1 6 0 5 3 2
4 2 3 1 5 7 0 6
consistency in J
Linda, stick to integer arithmetic:
5 (0=[:?~#) 8
0 0 0 0 0 0 1 0
1 0 0 0 0 0 0 0
0 0 1 0 0 0 0 0
0 0 0 1 0 0 0 0
0 0 0 0 0 1 0 0
- Bo
Fra: Linda Alvord lindaalv...@verizon.net
Til: programm...@jsoftware.com
Sendt: 10:10 torsdag den 8
3 2
0 5 2
1 2 4
3 0 1
so the shape of the result is 2x4x3.
$ 3 3 ?/ 6 6 6 6
2 4 3
Does that seem less odd?
... peter
[1] http://www.jsoftware.com/help/dictionary/d640.htm
Linda Alvord wrote:
f=: 13 :'0=?~ x#y'
f
0 = [: ?~ #
Maybe
] Arc consistency in J
Some nice things learned: ?~ instead of (?]).
Bo: is it true that (3$3) is not a list of integers but (3#3) is?
Fascinating discussion on ?/... so much intricatness.
Mike
On Thu, Nov 8, 2012 at 11:12 PM, Linda Alvord
lindaalv...@verizon.netwrote:
The dawn finally broke
-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Sent: Saturday, November 10, 2012 2:35 AM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Arc consistency in J
Kip suggested doing some testing. Over time you will develop all kinds
.
It strikes me that for a real problem, concise relations such as x :
y, or 2x+3y5 can become pretty large and unwieldy C-tables, but perhaps
that's unavoidable when working in the integers.
(The other) Mike
On 11/11/2012 10:16 AM, Linda Alvord wrote:
Mike, I think this will work as an alternative
Here's a starter...
m1=:1+i.3 3
1 2 3
4 5 6
7 8 9
m1=:1+i.3 3
Now I have to tackle the real problem
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Alex
Giannakopoulos
Sent: Tuesday,
round the new way of seeing trains of verbs.
Mike
On 12/11/2012 7:57 AM, Linda Alvord wrote:
Well, it was possible, once I managed to get the rank right. Thanks
for providing hope that it could be done. Actually it is not too bad
looking after all.
A
0 0 1 0 0
0 0 0 0 0
2 0 0 0 1
0
Where do you find keyboard settings?
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Skip Cave
Sent: Friday, November 16, 2012 12:19 PM
To: programm...@jsoftware.com
Subject: Re: [Jprogramming] Thanks
below) about Raul Miller's question concerning the domain matrix D.
Mike
On 14/11/2012 11:24 AM, Linda Alvord wrote:
Kip's comments are helpful.
Back to your problem, Mike:
X=:?(2#n)$2 NB. generate random matrix of [0,1]
X=:X*(i.n)/i.n NB. make it upper diagonal, zeros
!:4 'i'
┌─ [:
├─ g
──┤ ┌─ ,.
└─ . ─┴─
A h B
4 2 4 6
A i B
A i B
|domain error: g
| A i B
Linda
-Original Message-
From: programming-boun...@forums.jsoftware.com
[mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Linda Alvord
Eric, I was getting the same error messages using jijs.
Now after I run code with an error, it no longer goes one more step to show
the error in jijx but stops at the incorrect line. This isn't really a
problem as I can run it myself.
I do miss the green line which printed each time a jijs
Don,
Now that we have =i.5 it could be in the dictionary under identity
matrix
And, you might like this:
c=: 13 :'(i.y)*=i.y'
c
i. * [: = i.
c 5
0 0 0 0 0
0 1 0 0 0
0 0 2 0 0
0 0 0 3 0
0 0 0 0 4
Linda
-Original Message-
From:
1 - 100 of 1221 matches
Mail list logo