Thank you, Raul. --Kip
On Saturday, July 8, 2017, Raul Miller wrote:
>je 'name'
>
> Edits new script ~user/name.ijs
>
> Thanks,
>
> --
> Raul
>
> On Saturday, July 8, 2017, Kip Murray > wrote:
>
> > Is there a way to use the E editor
Is there a way to use the E editor to create a new script in directory
~user? What are the steps? --Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
Thanks, I'll try that. --Kip
On Tuesday, July 4, 2017, robert therriault wrote:
> Kip
>
> I just tap in the text entry box. I think that the down arrow makes it
> disappear.
>
> Cheers, bob
>
> > On Jul 4, 2017, at 7:14 PM, Kip Murray > wrote:
> >
&g
How do you get the new keyboard back if you lose it? Don't remember how I
lost it. --Kip Murray
On Tuesday, July 4, 2017, robert therriault wrote:
> Looks good Eric,
>
> At first blush the new keyboard is much more useful for J and Menlo is a
> much nicer font.
>
&g
ts outweigh cost of losing
> J. Any views?
> Thanks,
> Mike
>
> Please reply to mike_liz@tiscali.co.uk .
> Sent from my iPad
>
> > On 26 May 2017, at 10:43, Kip Murray > wrote:
> >
> > My iPad Air now has iOS version 10.3.2 so I can
Sorry, I don't know. --Kip
On Friday, May 26, 2017, Louis de Forcrand wrote:
> Hi,
>
> Is this applicable to all devices running iOS?
> Thank you very much for the warning in any case.
>
> Louis
>
> > On 26 May 2017, at 11:43, Kip Murray > wrote:
> >
&
My iPad Air now has iOS version 10.3.2 so I can no longer use J on my iPad.
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
Please let me know when J becomes available for my iPad Air and its current
iOS version 10.3.2 --Kip Murray
On Wednesday, May 3, 2017, 'Jim Russell' via Programming <
programm...@jsoftware.com> wrote:
> Not dates, but IOS versions -- any IOS past the current will support onl
Also, I get a message, "This app will not work with future versions of
iOS. The developer needs to update it so it will work with future versions
of iOS." --Kip
On Wednesday, May 3, 2017, Kip Murray wrote:
> Thank you, no. I suppose there may be recent facilities I can'
essed?
>
> On Wed, May 3, 2017 at 3:21 PM, Kip Murray > wrote:
>
> > Eric, you were enthusiastic about updating iPad J access. What's
> > happening? --Kip Murray
> >
> >
> >
> > --
> > Sent from Gmail Mobile
> > ---
Eric, you were enthusiastic about updating iPad J access. What's
happening? --Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
starting the JHS server, read the messages in the window and start a
> browser and enter the url localhost:65001/jhs to get a JHS client session.
>
>
> On Sat, Feb 4, 2017 at 7:36 PM, Kip Murray > wrote:
>
> > I don't know how to find the bin folder. --Kip
> >
>
tell you the url to access.
>
>
>
> ----- Original Message -
> From: Kip Murray >
> To: "programm...@jsoftware.com " >
> Sent: Saturday, February 4, 2017 6:32 PM
> Subject: Re: [Jprogramming] JHS update
>
> I've forgotten JHS. Where do I find help for installing
I've forgotten JHS. Where do I find help for installing and using on my
Windows 32 machine? I do have J805 and can access that with Jqt. --Kip
Murray
On Saturday, February 4, 2017, Eric Iverson
wrote:
> Major JHS update is available.
>
> If you use JHS, it is recommended that
I have installed J805 on my ancient Windows 32 computer and am able to use
Jqt.
My primary use of J is on my iPad Air. Is there any news on that front?
--Kip Murray
On Monday, December 19, 2016, Eric Iverson wrote:
> Installing J805 is strongly recommended for all users.
>
>
t result looked similar to the above frequency table, which
>> inspired
>> > me to follow this path:
>> >
>> >reduc=. 13 : '^/ (~.y) ,:(y#/.y)'
>> >reduc v
>> > 8 3 25 7
>> >reduc q:4200
>> >
Consider
q: 4200
2 2 2 3 5 5 7
How would you "reduce" this to 8 3 25 7 ?
Write the verb red:
red q: 4200
8 3 25 7
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forum
2|0 4
3|2 6
4|7 7
5|2
6|4
7|2
8|0 7
9|0
10|
11|
12|
13|3
14|
15|1
--Kip Murray
On Sunday, May 8, 2016, Brian Schott wrote:
> Roger Hui and I have both studied histograms and you can find my discussion
> at the following link where the following verbs are defined.
&g
(0 { a) *"1 b
10 22 36 52
14 30 48 68
On Monday, April 18, 2016, 'Jon Hough' via Programming <
programm...@jsoftware.com> wrote:
> Thanks,
>
> I was actually just trying that. Problem is, it has a dangling dimension
> (shape 1 4 2), which can be removed, but seems a little messy.
>
>
> ---
basic idea in verb cr belongs to Raul Miller.
cr =: {.@] , {.@] + [: ([: %:`+/ ,)\ [: |: [ ,: }.@] NB. Usage a cr b
(13#2) cr 0,13#1 NB. The 2 means square roots are used
0 1 1.414213562 1.553773974 1.598053182 1.611847754 1.616121207 1.617442799
1.617851291 1.617977531 1.618016542 1.618028597 1
I had
rtz =: }: ^: ((0 = {:)*.0<#) ^: _
--Kip
On Wednesday, March 30, 2016, Roger Hui wrote:
> There's also
>
> rt0=: }.~ -@(#.~)@(0&=)
>
> On Wed, Mar 30, 2016 at 8:24 AM, Roger Hui >
> wrote:
>
> > rtz=: #~ +./\.@(0&~:)
> >
> >
How do you remove trailing zeros from a vector?
rtz 0 1 2 3
0 1 2 3
rtz 0 1 2 0
0 1 2
rtz 0 1 0 0
0 1
rtz 0 0 0 0
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http
ving dy/dx is changed)
>
>
>
> Old math te acher f orgiven
>
> EE prof emeritus (latin for "has been") whose approach to math is as a tool
>
> and less pro ficient in J , also ask s for forgiveness
>
>
>
> Don
>
>
> - Original Message -
>
&
What does the word "test" mean below? When can I expect a "safe" J for my
Android cell phone? Apologies if this is the incorrect forum for my
question. --Kip Murray
[image: [ ]] jandroid.apk
<http://www.jsoftware.com/download/j804/install/jandroid.apk>
2015-12-22
Very nice, Raul! Much shorter than my Rube Goldberg approach. --Kip
On Saturday, March 12, 2016, Raul Miller wrote:
>cv=: ([: (+`%/) 1 }.,)\@|:
>
> I hope this helps...
>
> --
> Raul
>
>
> On Sat, Mar 12, 2016 at 1:21 PM, Kip Murray > wrote:
> > He
Miller wrote:
> How do you compute the first two rows?
>
> Thanks,
>
> --
> Raul
>
> On Saturday, March 12, 2016, Kip Murray > wrote:
>
> > The challenge is at the end. First a table for a finite continued
> fraction
> > that approximates e =: ^ 1 .
>
t*B , and if t is _1 . . . You are
establishing a coordinate system on line AB in which A has coordinate 0 and
B has coordinate 1.
Forgive an old math teacher,
Kip Murray
On Friday, March 11, 2016, Donald Kelly wrote:
> We are trying to do the same thing- where you concentrate on a p
The challenge is at the end. First a table for a finite continued fraction
that approximates e =: ^ 1 .
--Kip Murray
The table below summarizes a finite continued fraction which begins
1
1 + -
1r12
1r2 +
1r60
1
A quickie -- how do you interweave two equal-length lists, so that
'ace' itw 'bdf'
abcdef
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
; How would you do the latter directly?
>
> Mike
>
> On 10/03/2016 17:18, Kip Murray wrote:
>
>> J Continued Fractions
>>
>> Let us consider the continued fraction
>>
>> 1 + 2 % 3 + 4 % 5 + 6 % 7 + …
>>
>> This represents the infinite list
>
4 5
Try it!
The verb cf below calculates terms of our continued fraction
cf =: [: +`%/ 1 + [: i. 1 + 2 * ]
cf 0
1
cf 1
1.7
cf 2
1.526315789
cf 3
1.543046358
cf"0 i. 4
1 1.7 1.526315789 1.543046358
--Kip Murray
On Thursday, March 10, 2016, Mik
line
_1j0 0j1 1j2
jj =: hh rot 1r4p1 _1j1 NB. rotate line 1r4p1 radians about _1j1
jj"0 [ _1 0 1 NB. three points show result is vertical line x = _1 +
%: 0.5
_0.2928932188j_1.121320344 _0.2928932188j0.2928932188
_0.2928932188j1.707106781
--Kip Murray
On Wednesday, March 9, 20
) (,&<~"_ _1)'
> (2 4 $ 0) (16+i.2 4) ritem i. 3 2 4
>
>
>
> - Original Message -
> From: Kip Murray >
> To: "programm...@jsoftware.com " >
> Sent: Wednesday, March 9, 2016 5:26 PM
> Subject: [Jprogramming] Replace Items
>
&
Adverb ritem creates a verb which replaces by x items in array m that
match y
Below are examples. How would you write the adverb? --Kip Murray
C
0 1 2 3
4 5 6 7
0 1 2 3
0 0 0 0 C ritem 0 1 2 3
0 0 0 0
4 5 6 7
0 0 0 0
A
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14
> Thanks,
> >
> > Mike
> >
> >
> > On 09/03/2016 04:32, Roger Hui wrote:
> >
> >> x=: %/?2$10^8x
> >> x
> >> 69904549r40669028
> >>
> >> den=: [: % 1 +. ]
> >> num=: * den
> >>
>
That's great! It's still a nice puzzle to write your own. --Kip
On Tuesday, March 8, 2016, Raul Miller wrote:
>2 x: 6r4
> 3 2
>
> --
> Raul
>
>
> On Tue, Mar 8, 2016 at 10:04 PM, Kip Murray > wrote:
> > How do you find the numerator and
How do you find the numerator and denominator in lowest terms of a rational
fraction? For example,
nd 6r4
3 2
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com
The following verbs appear to do what you want. --Kip Murray
plus =: [: (% +./) (+/ .* |.) , *&{:
neg =: -@{. , {:
minus =: plus neg
times =: [: (% +./) *
recip =: |.
divide =: times recip
On Sunday, March 6, 2016, Louis de Forcrand wrote:
> I believe yours works if 1r2 + 3r4 w
areas =: 1 + [: *: 1 + i.
areas 10
2 5 10 17 26 37 50 65 82 101
--Kip Murray
On Friday, February 26, 2016, Michal Wallace
wrote:
> Imagine a compass rooted at the origin of the complex plane.
>
> Starting at the point 0j1, draw the arc down to the real line, and then
> fro
t; rotposmat=: centre + j./@posmat |:@:+.@:* r.@angle
> centre=: 1&({::)@]
> posmat=: (] ,: p.)&0 1@[ - centre
> angle=: 0&({::)@]
>
> It uses matrix division on a rotated set of two points from the original
> polynomial. Not very elegant, but I’m pretty sure it works.
at it means to
> "rotate a linear polynomial"?
>
> --
> Raul
>
> On Thu, Feb 18, 2016 at 11:46 PM, Kip Murray > wrote:
> > No, because his center of rotation is not 0 0 . In his first two
> examples
> > the center of rotation is 0 1 and in the third
otposmat=: centre + j./@posmat |:@:+.@:* r.@angle
> > centre=: 1&({::)@]
> > posmat=: (] ,: p.)&0 1@[ - centre
> > angle=: 0&({::)@]
> >
> > It uses matrix division on a rotated set of two points from the original
> > polynomial. Not very elegant, bu
22e_16
>
> I remember there being a concise phrase to clean irrelevant bits near
> zero in a complex number, but I can't remember what I need to search
> on to find it, and my foggy memory of how to write it is failing me at
> the moment.
>
> Still, this gets you close.
>
, are you writing a book? Isn't there a homogeneous
> coordinate system/transformation lab?
>
>>
>> On 02/16/2016 06:16 PM, programming-requ...@forums.jsoftware.com wrote:
>>
>>> Date: Tue, 16 Feb 2016 15:18:43 -0600
>>> From: Kip Murray
>>> T
Another example
0j2 rot 3 4
_4 3
This rotates 3 4 by 90 degrees, counterclockwise.
--Kip
On Tuesday, February 16, 2016, Kip Murray wrote:
> Fairly easy: write a verb that rotates a point in the plane by the angle
> of a given complex number. For example
>
> 1j1 rot 1 1
are added.
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
0 2310│2 6 30 210 2310 30030│
> └─┴───┴──┴──┴───┴─┘
>
> …/Rob
>
>
> > On 13 Feb 2016, at 3:09 PM, Kip Murray > wrote:
> >
> > This one is fairly easy. Write the verb ff .
> >
> >(ff 1);(ff 2);(ff 3);(ff 4);(ff 5);ff 6
> &
This one is fairly easy. Write the verb ff .
(ff 1);(ff 2);(ff 3);(ff 4);(ff 5);ff 6
+-+---+--+--+---+-+
|2|2 6|2 6 30|2 6 30 210|2 6 30 210 2310|2 6 30 210 2310 30030|
+-+---+--+--+---+-+
--Kip
Here's mine, not elegant. --Kip
A
abcabbe
B
babe
rfo NB. remove first of only one letter
] #~ [: -. i.~ = [: i. [: # ]
'b' rfo A
acabbe
rfob NB. one step of cless, boxed
([: }.&> {.) ; ([: {.&> {.) rfo [: > {:
rfob B;A
+---+--+
|abe|acabbe|
+---+--+
c
.
>
>ri =: * * [: <. 0.5 + |
>ri 1j1
> 0.707107j0.707107
>
> But I guess that's the thing about what we get taught... it tends to
> have only situational relevance.
>
> Thanks,
>
> --
> Raul
>
>
> On Sat, Jan 16, 2016 at 10:50 AM, Kip Murray > wro
Here is my latest round-to-integer. It rounds the absolute value and then
restores the sign -- the way I was taught to round. Apologies if someone
else has already presented this.
ri =: * * [: <. 0.5 + |
ri _1234.56
_1235
ri 123.45
123
--Kip Murray
--
Sent from Gmail Mob
>round 0.5 + 50.4 2e10 1e30 _
> |NaN error: round
>
> Thanks,
>
> --
> Raul
>
> On Thu, Jan 14, 2016 at 4:28 PM, Kip Murray
> wrote:
> > Try
> >
> >round
> > [ * [: <. 0.5 + %~
> >
> > which I found in j602.
> >
Try
round
[ * [: <. 0.5 + %~
which I found in j602.
--Kip Murray
On Thu, Jan 14, 2016 at 1:56 PM, Marshall Lochbaum
wrote:
> Here's something I spent far too long on, and consequently thought was
> worth sharing. I can turn it into an essay on the J wiki if peop
I have a utility named row :
row
,.&.|:
'a b c d' =: i. 4 3
a row b row c row d
0 1 2
3 4 5
6 7 8
9 10 11
--Kip Murray
On Tuesday, January 5, 2016, wrote:
> >z=. (((a0 ,: a1) , a2) , a3) , a4NB. "glue" rows together
>
>
K
[: ([: +. , #~ [:
wrote:
> Two of my favorite constructs are 4$.$. and each. Therefore:
>
>(#~
> or:
>
>;(i.,.]) each ;/i.5
>
> The second is more efficient, despite boxes.
>
> Ben
>
> From: programming-boun...@forums.jsoftware.com [
> prog
And you can use a fork in the definition of a conjunction:
of =: 2 : 'v@[ u v@]'
4 + of *: 5
41
On Thursday, December 3, 2015, Kip Murray wrote:
> A fork is not a conjunction but it shows what you are doing:
>
>
> 4 (*:@[ + *:@]) 5
> 41
>
>
> On
A fork is not a conjunction but it shows what you are doing:
4 (*:@[ + *:@]) 5
41
On Thursday, December 3, 2015, Lippu Esa wrote:
> It is 5:17 AM in Finland and I already have two good answers. Thank you
> David and Pascal!
>
> It seems that I haven't been using Compose either :) . But a
C
3 2
1 7
4 1
1 8
5 2
9 8
C /: 1 { |: C
4 1
3 2
5 2
1 7
1 8
9 8
On Thursday, December 3, 2015, Roger Hui wrote:
>] x=: ? 10 4 $ 100
> 33 44 35 49
> 67 95 56 50
> 35 70 83 6
> 26 73 97 11
> 29 92 71 94
> 81 13 93 64
> 47 51 35 98
> 33 59 52 90
> 62 0 64 29
> 14 30 92 98
Note also
(i. 2 3) ,.&.|: i. 4 3
0 1 2
3 4 5
0 1 2
3 4 5
6 7 8
9 10 11
--Kip Murray
On Thursday, November 12, 2015, Zsbán Ambrus wrote:
> On Thu, Nov 12, 2015 at 7:54 PM, Viton, Philip > wrote:
> >
> > Given: mx =. (i. 2 3) ; same number of columns (3) bu
You need 16 (< 0 0) } i. 4 4 . See the examples in
http://www.jsoftware.com/jwiki/Vocabulary/curlyrt#dyadic
--Kip
On Monday, November 9, 2015, Linda A Alvord wrote:
> All I want to do is change the item in the first row and column to a 16. I
> can't seem to think of a name to call the verb
is 0 , and otherwise
uses the quadratic formula to find the values of x, reporting them in a
vector.
quad 2 _8 6
3 1
quad 0 _8 6
Not quadratic
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums
My solution is forwarded below.
Try
find i. 40
--Kip Murray
-- Forwarded message -
From: km
Date: Thu, Oct 15, 2015 at 3:51 PM
Subject: Finding prime palindromes
To: Kip Murray
Here's my solution. --Kip Murray
test =: ( [: (-: |.) 10&#.^:_1 )"0
find =: [
Please read below. Forwarding is the only way I can get my awkward mailer
to send you a message with copied material! --Kip Murray
-- Forwarded message -
From: km
Date: Thu, Oct 15, 2015 at 11:44 AM
Subject: Finding prime palindromes
To: Kip Murray
A prime palindrome is a
This is what I wanted to send. --Kip Murray
NB. A way to do column operations
NB. rop below makes row 2 become cumulative total of row 1
rop =: (2 {. ]),([: +/\ 1 { ]), 3 }. ]
NB. cop below makes col 2 become cumulative total of col 1
cop =: rop&.|:
NB. Example
]sheet =: i. 5 4
0 1 2 3
Apologies for the mess below -- ill-behaving mailer! --Kip Murray
On Tue, Oct 6, 2015 at 6:05 PM Kip Murray wrote:
>NB. A
> way to do column operations
> NB. rop
> below makes row 2 become cumulative total of row 1
> rop =:
> (2 {. ]),([: +/\ 1 { ]), 3 }. ]
>
NB. A
way to do column operations
NB. rop
below makes row 2 become cumulative total of row 1
rop =:
(2 {. ]),([: +/\ 1 { ]), 3 }. ]
NB. cop
below makes col 2 become cumulative total of col 1
cop =:
rop&.|: NB.
Example
]sheet
=: i. 5 4 0 1 2
3 4 5 6
7 8 9 10
1112 1
Verdana?
On Sat, Sep 26, 2015 at 11:04 PM Henry Rich wrote:
> No. For the verb font, I just want a font that is recognizably NOT
> Courier. I currently use Arial.
>
> Henry Rich
>
> On 9/26/2015 11:59 PM, Raul Miller wrote:
> > Are you looking for a fixed width font?
> >
> > Actually, generall
You're right, my error. --Kip
On Sun, Aug 23, 2015 at 4:43 PM Mike Day wrote:
> Kip, it's not what he pleaded for,
>
> Mike
>
> On 23/08/2015 22:33, Kip Murray wrote:
> > vb =: [: > [: (, }.@|.) ;:
> > vb 'one two three'
> > on
vb =: [: > [: (, }.@|.) ;:
vb 'one two three'
one
two
three
two
one
--Kip Murray
On Sun, Aug 23, 2015 at 4:13 PM Raul Miller wrote:
> My version would be
>
>([: ]/. ]"0/~)&|.&.;:
>
> Thanks,
>
> --
> Raul
>
> On Sun, Aug 23, 2
est 720
1
test 0
1
test 721
0
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
Sorry, I was off topic. KM
On Wednesday, July 22, 2015, Kip Murray wrote:
> Is this what you need?
>
> 0 1 {"0 _1 [1 1,:3 4
> 1 4
>
>
> --Kip Murray
>
> On Wednesday, July 22, 2015, 'Pascal Jasmin' via Programming <
> programm...@jsoftware.co
Is this what you need?
0 1 {"0 _1 [1 1,:3 4
1 4
--Kip Murray
On Wednesday, July 22, 2015, 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> can do this, I guess:
>
> ia =:[: 0&{::`(1&{::)} ,&<
>
> 0 1 ia 1 1 ,: 3 4
Following up on Raul's "use transpose" idea:
tbl
0 1 2
3 4 5
6 7 8
insertcol =: 1 : '({. , m , }.)&.|:'
2 (0 0 0 insertcol) tbl
0 1 0 2
3 4 0 5
6 7 0 8
--Kip Murray
On Monday, July 20, 2015, Raul Miller wrote:
> The classic "insertion" met
I use
row =: ,.&.|:
1 2 row 3 4
1 2
3 4
1 2 row 3 4 row 5 6
1 2
3 4
5 6
(1 2 row 3 4) row 5 6
1 2
3 4
5 6
(1 2 row 3 4) row 5 6 row 7 8
1 2
3 4
5 6
7 8
--Kip Murray
On Sat, Jul 18, 2015 at 7:50 PM, Raul Miller wrote:
> Aw... come on, what about
>
Write a verb row so that
1 2 row 3 4
1 2
3 4
1 2 row 3 4 row 5 6
1 2
3 4
5 6
(1 2 row 3 4) row 5 6
1 2
3 4
5 6
(1 2 row 3 4) row 5 6 row 7 8
1 2
3 4
5 6
7 8
--Kip Murray
--
For information about J
tall. HTH.
>
> Чт, 25 июн 2015, Kip Murray написал(а):
> > Then what? You click on qtide-signed.apk and J automatically installs,
> > creating an icon to click when you want to use J? --Kip
> >
> > On Thursday, June 25, 2015, bill lam >
> wrote:
> >
> &
Can you give step-by-step instructions for installation on my Motorola
> DROID MAXX cell phone with Android 4.4.4, purchased from Verizon? --Kip
> Murray
> On Jun 25, 2015 5:04 PM, "bill lam" >
> wrote:
>
> > qtide-signed.apk
> > On Jun 26, 2015 12:58 AM, "Björ
Can you give step-by-step instructions for installation on my Motorola
DROID MAXX cell phone with Android 4.4.4, purchased from Verizon? --Kip
Murray
On Jun 25, 2015 5:04 PM, "bill lam" wrote:
> qtide-signed.apk
> On Jun 26, 2015 12:58 AM, "Björn Helgason" wrote:
&g
shows the mean and the mean
plus or minus a standard deviation, and the third histogram shows the
median and fourths. (The fourths are respectively the median of the
numbers below the median, and the median of the numbers above the median.)
--Kip Murray
On Thursday, June 25, 2015, Devon McCormick
You may want to try Tukey's five number, seven member, etc summaries,
appropriate for data from distributions not known to be normal. See
https://en.m.wikipedia.org/wiki/Five-number_summary
--Kip Murray
On Thursday, June 25, 2015, 'Bo Jacoby' via Programming <
programm...@js
h =: (+/ % #) , [: *: +:
h 1 2 3
2 4 16 36
--Kip
On Friday, April 17, 2015, Linda Alvord wrote:
> Thanks David. With your explanation I could get the same result without @:
>
>f=: 13 :' ((+/ % #) , *:@:+:)y'
>f 1 2 3
> 2 4 16 36
>
>g=: 13 :' (+/y % # y) , *:+:y'
>g 1 2 3
Use an adverb:
G =: 1 : '^@:(m&*)'
_2 1 G
^@:(_2 1&*)
--Kip Murray
On Sunday, March 15, 2015, Jon Hough wrote:
> Kip, Raul,Thanks for replying.
> The matrix way would probably be better.
> As a follow up question, I am having trouble creating an
> adverb/
Raul, where you have _1 * y you need _2 * y
--Kip
On Sunday, March 15, 2015, Raul Miller wrote:
> On Sat, Mar 14, 2015 at 7:11 AM, Kip Murray > wrote:
> > I recommend a matrix approach involving eigenvalues and eigenvectors,
> > and assume you have a way to fi
square matrices
[: diag [: ^ diagof
diagof NB. finds the diagonal of a square matrix
(<0 1)&|:
diag NB. creates a diagonal square matrix with diagonal y
* ([: =@i. #)
ff NB. solution of problem above with u(0) = 2 , u'(0) = _1 , and
u''(0) = 5
2 _1 5 sol
I regard cap as a brilliant invention, analagous to the invention of zero.
"Does nothing" cap is analagous to "Adds nothing" zero. It may help you
to read cap in trains as "the ... of ...", eg
[: %: [: +/ *:
is the square root of the sum of squares.
--Kip Murray
And this:
hh =: 3 : '[: >: i. y'
hh
3 : '[: >: i. y'
hh 4
|domain error: hh
| [:>:i.y
I think Brian's suggestion that you parenthesize the result of 13 : before
applying arguments is the best way of removing your frustration. My point
about parenthsizing [: > i. before applying ar
>From E. Parsing and Execution in the Dictionary:
One important consequence of these rules is that in an unparenthesized
expression the right argument of any verb is the result of the entire
phrase to its right. The sentence 3*p%q^|r-5 can therefore be *read* from
left to right: the overall result
No good for me, using Gmail app on iPad Air. --Kip Murray
On Monday, November 3, 2014, Devon McCormick wrote:
> Who is able to see the below looking like it ought to (evenly ASCII-boxed,
> then line-drawing boxed)?
> I highlighted this in Gmail and set the font to Courier New.
>
&g
See the following (20. Directed Graphs) from the Dictionary
http://www.jsoftware.com/docs/help801/dictionary/samp20.htm
--Kip Murray
On Friday, October 24, 2014, Jon Hough wrote:
> Finding the minimum spanning tree of a graph is (in theory) pretty easy.
> I wanted to see if I could
72 30375 1313046875
The first of these numbers is (2^3) * (3^2) , the second is (3^5) * (5^3),
and the third is (5^7) * (7^5) . You see the pattern involving successive
primes.
Write a J expression to produce the above list. --Kip Murray
--
Sent from Gmail Mobile
"Is there a discussion of the quality of the RNG somewhere?"
See
http://en.m.wikipedia.org/wiki/Mersenne_twister
which discusses J's default RNG.
On Thursday, September 25, 2014, Johann Hibschman
wrote:
> Hi all,
>
> For fun, I've been running some statistics for a game with an unusual
> rule
>minus =: - op2Arg
>times =: * op2Arg
>divide =: % op2Arg
>
>clear'' NB. Initialize global vector STACK
>5 2 enter''
> 5
> 2
>1 dup''
> 5
>
=: ( _2 }. STACK), +/ _2 {. STACK'
minus =: 3 : ',.STACK =: ( _2 }. STACK), -/ _2 {. STACK'
times =: 3 : ',.STACK =: ( _2 }. STACK), */ _2 {. STACK'
divide =: 3 : ',.STACK =: ( _2 }. STACK), %/ _2 {. STACK'
--Kip Murray
--
Sent from Gmail Mobile
--
For information about J forums see http://www.jsoftware.com/forums.htm
For practical reasons the items of a vector are listed horizontally but the
items of higher dimensional arrays are listed vertically. You must
remember this when you interpret displays.
To illustrate, in
i. 3 2 4
0 1 2 3
4 5 6 7
8 9 10 11
12 13 14 15
16 17 18 19
20 21 22 23
SumOfFact^:(i.4) 169
169 363601 1454 169
On Thursday, September 4, 2014, 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> You probably misspelled SumOfFact in the second call, or SumOfFact 's
> definition is not in the current locale or hasn't been defined/loaded.
>
>
> --
You can use continued fractions for monadic ^ and ^. , see formulas
4.2.40 and 4.1.39 in the Handbook of Mathematical Functions by Abramowitz
ad Stegun
http://people.math.sfu.ca/~cbm/aands/intro.htm
and the following. See verb pwr below. Watch for line wrap. --Kip Murray
NB. Continued
utu =: 1 : '[: u~ u'
3 *:@* utu 4
429981696
uses the ideas that *** is equivalent to *:@* and u u u is equivalent to [:
u~ u
On Saturday, July 19, 2014, 'Pascal Jasmin' via Programming <
programm...@jsoftware.com> wrote:
> I'm not sure I'm arguing for the idea. I've disliked ~ in the past
I believe 5!:4 < is a hook and that when you enter a verb train the
system simply echos it.
On Saturday, July 19, 2014, Linda Alvord wrote:
> I was typing fast and produced this repeatable phenomenon.
>
>
>
>f=:%*+-#
>
>5!:4 <
>
> 5!:4 <
>
>f
>
> % * + - #
>
>
>
> Any string seems
;>
> >>
> >>((< A.&.>~ [: i. [: ! #)@i.-:(i.@! <@A. i.))5
> >>
> >> 1
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >> R.E. Boss
> >>
> >>
> >>
> >> (Add your i
Use Match -: .
1 2 3 -: 1 2 3
1
http://www.jsoftware.com/jwiki/Vocabulary/minusco#dyadic
On Thursday, July 17, 2014, Jon Hough wrote:
> Firstly, sorry, I am typing on my phone. There may be spelling errors.
>
> I am trying to test eqaulity of multidimension arrays.
> I.e checkif array A is
1 - 100 of 154 matches
Mail list logo