Re: [Jprogramming] making this tacit

2013-11-02 Thread Don Kelly
g (+/ .* 1&|.) % */ h (] +/ .* 1 |. ]) % */ h in not quite as nice as g, but I found it helpful. Linda -Original Message- From: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Dan Bronb Sent: Friday, November 01, 201

Re: [Jprogramming] making this tacit

2013-11-01 Thread Linda Alvord
ramm...@jsoftware.com Subject: Re: [Jprogramming] making this tacit Because with f, you're asking that a NVV train be created dynamically based on its argument: that is, you're changing syntax during execution. There is no tacit way to express that - dynamic execution of code is the definit

Re: [Jprogramming] making this tacit

2013-11-01 Thread Don Kelly
On 31/10/2013 7:01 PM, Don Kelly wrote: OOPS my goof.SORRY- I gave misleading (i.e. stupidly erroneous) information What I wanted and have is ( a*b , b*c, c*a )% +.a b c That is +/ a b c Don -- For information about

Re: [Jprogramming] making this tacit

2013-11-01 Thread Dan Bron
:'((+/ .* 1&|.)% */)y' > g 2 3 5 > 1.0 > g > (+/ .* 1&|.) % */ > > Linda > > > -Original Message- > From: programming-boun...@forums.jsoftware.com > [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Don Kelly > Sent: Thursday,

Re: [Jprogramming] making this tacit

2013-11-01 Thread Linda Alvord
m: programming-boun...@forums.jsoftware.com [mailto:programming-boun...@forums.jsoftware.com] On Behalf Of Don Kelly Sent: Thursday, October 31, 2013 10:09 PM To: programm...@jsoftware.com Subject: Re: [Jprogramming] making this tacit I made an error (BIG GOOF)and gave a problem other than what I wanted so I se

Re: [Jprogramming] making this tacit

2013-10-31 Thread Don Kelly
I made an error (BIG GOOF)and gave a problem other than what I wanted so I sent you and Raul on a wild goose chase. Your (+/@(*/)@(,: 1&|.) % */) 2 3 5 and Raul's ((+/ .* 1&|.) % */) 2 3 5 Agree and are more material to study, Thanks Don On 30/10/2013 5:59 AM, Jan-Pieter Jacobs wrote: I'

Re: [Jprogramming] making this tacit

2013-10-31 Thread Don Kelly
OOPS my goof.SORRY- I gave misleading (i.e. stupidly erroneous) information What I wanted and have is ( a*b , b*c, c*a )% +.a b c I have now 4 versions with thanks to all deltoy=:3 : '(y*_1|. y)%+/y' NB. original d2y2=:+/ %~ ] * _1&|.NB.Pascal del2y=:(] * _1 |. ]) % +/ NB. Boss us

Re: [Jprogramming] making this tacit

2013-10-31 Thread Henry Rich
ab+bc+ca is 1/2 the permanent. Cute. Henry Rich On 10/30/2013 11:20 PM, David Lambert wrote: By chance is ab + bc + ab the permanent of 1j1#"1'1',,:~'abc' 1 1 1 a b c a b c >From: Raul Miller >To: Programming forum >Subject: Re: [Jprogrammi

Re: [Jprogramming] making this tacit

2013-10-30 Thread David Lambert
By chance is ab + bc + ab the permanent of 1j1#"1'1',,:~'abc' 1 1 1 a b c a b c >From: Raul Miller >To: Programming forum >Subject: Re: [Jprogramming] making this tacit >Message-ID: > >Content-Type: text/plain; charset=UTF-8 > >

Re: [Jprogramming] making this tacit

2013-10-30 Thread Raul Miller
To get what you want, replace the */ in the denominator of the verbs I defined with ] But Henry has suggested a better approach for the numerator. Thanks, -- Raul On Wed, Oct 30, 2013 at 10:49 PM, Don Kelly wrote: > I tried it but it doesn't work. > What I want is result D =(a*b +b*c +c*a)

Re: [Jprogramming] making this tacit

2013-10-30 Thread Henry Rich
Look into 1 */\. y Henry Rich On 10/30/2013 10:49 PM, Don Kelly wrote: I tried it but it doesn't work. What I want is result D =(a*b +b*c +c*a) and get D/c, D/a, D/b zij 3j1.5 5j1.5 7j_1.5 F zij 0.586738j_0.159111 wrong answer d2y2=:+/ %~ ] * _1&|.(Jasmin's version) 1.57426j0.2425

Re: [Jprogramming] making this tacit

2013-10-30 Thread Don Kelly
I tried it but it doesn't work. What I want is result D =(a*b +b*c +c*a) and get D/c, D/a, D/b zij 3j1.5 5j1.5 7j_1.5 F zij 0.586738j_0.159111 wrong answer d2y2=:+/ %~ ] * _1&|.(Jasmin's version) 1.57426j0.242574 0.920792j0.707921 2.47855j_0.0478548 Correct answer Jasmin's answer too

Re: [Jprogramming] making this tacit

2013-10-30 Thread Raul Miller
Here's another way to express your concept: ((+/ .* 1&|.) % */) 2 3 5 1.0 Thanks, -- Raul On Wed, Oct 30, 2013 at 8:59 AM, Jan-Pieter Jacobs < janpieter.jac...@gmail.com> wrote: > I'd write it tacitly like this: > > (+/@(*/)@(,: 1&|.) % */) a b c > > This is mainly motivated by

Re: [Jprogramming] making this tacit

2013-10-30 Thread Jan-Pieter Jacobs
I'd write it tacitly like this: (+/@(*/)@(,: 1&|.) % */) a b c This is mainly motivated by the fact that a * b + b* c + c*a can be expressed as multiplying with a shifted version, then summing. Jan-Pieter 2013/10/30 Raul Miller > On Wed, Oct 30, 2013 at 2:51 AM, Don Kelly wrote: > > > You

Re: [Jprogramming] making this tacit

2013-10-30 Thread Raul Miller
On Wed, Oct 30, 2013 at 2:51 AM, Don Kelly wrote: > You are right but it is a bit of serendipity What I wanted is (a*b+ > b*c+c*a ) % c a b . > it doesn't matter how the pairs are formed in the numerator ac+ba+cb is > the same. > Like this? F=: +/ .* (http://www.jsoftware.com/forums.htm

Re: [Jprogramming] making this tacit

2013-10-29 Thread Don Kelly
You are right but it is a bit of serendipity What I wanted is (a*b+ b*c+c*a ) % c a b . it doesn't matter how the pairs are formed in the numerator ac+ba+cb is the same. The objective is to have this sum divided by a c b a orde.r The problem is in the notation. Single subscripts due to singular

Re: [Jprogramming] making this tacit

2013-10-27 Thread Don Kelly
many thanks to you , km ,Pascal Jasmin and R.E. Boss You have come through admirably in dealing with this. I will look at these carefully as buried in your answers is material useful elsewhere (including my need to swot up on @: PS: The input and output values are always of the form i j k wher

Re: [Jprogramming] making this tacit

2013-10-26 Thread Mike Day
Is this the sort of thing you wanted? It's worth noting that _1 |. y and 2 0 1 { y yield the same result, so you don't need to use both forms in ytodel deltoya =: (*_1&|.)%+/ NB. not tested for edge effects. ytodela=: ( +/@:* %] ) _1&|. deltoya ytodela 1j2 2j1 3 1j2

Re: [Jprogramming] making this tacit

2013-10-26 Thread R.E. Boss
ki/Community/Demographics ) > -Original Message- > From: programming-boun...@forums.jsoftware.com [mailto:programming- > boun...@forums.jsoftware.com] On Behalf Of Don Kelly > Sent: zaterdag 26 oktober 2013 5:37 > To: programm...@jsoftware.com > Subject: [Jprogramming] makin

Re: [Jprogramming] making this tacit

2013-10-26 Thread Pascal Jasmin
for just tacit versions: d2y =: (] * _1&|.)%+/ or with fewer parens, +/ %~ ] * _1&|. y2d =: (2 0 1&{ %~ ] +/@:* _1&|.) From: Don Kelly To: programm...@jsoftware.com Sent: Friday, October 25, 2013 11:36:35 PM Subject: [Jprogramming] makin

Re: [Jprogramming] making this tacit

2013-10-25 Thread km
Does this help? ff =: * 1&|. ff 2 3 4 6 12 8 2 3 4 * 3 4 2 6 12 8 --Kip Murray Sent from my iPad > On Oct 25, 2013, at 10:36 PM, Don Kelly wrote: > > I have written a couple of explicit verbs for Y-delta network transforms and > would like advice on how to express the

[Jprogramming] making this tacit

2013-10-25 Thread Don Kelly
I have written a couple of explicit verbs for Y-delta network transforms and would like advice on how to express them in a tacit form. This is for my learning benefit as the use of these comes up only occasionally and input and output are always only 3 numbers. deltoy=:3 : '(y*_1|.y)%+/y' fr