I use "13 :" a lot and compare the results to what I wrote explicitly but
this is more of a crutch than an attempt to really understand tacit.

On 5/16/08, Patrick van Beek <[EMAIL PROTECTED]> wrote:
>
> >-----Original Message-----
> >From: [EMAIL PROTECTED] [mailto:programming-
> >[EMAIL PROTECTED] On Behalf Of Oleg Kobchenko
> >Sent: 16 May 2008 12:47
> >To: Programming forum
> >Subject: Re: [Jprogramming] Continued fractions
> >
> >--- On Fri, 5/16/08, Mike Powell <[EMAIL PROTECTED]> wrote:
> >
> >> If you construct a lower triangular matrix from your
> >> original q, you
> >> can do the evaluations with an insertion. For example:
> >>
> >> q =: 4 2 1 3 1 2
> >>
> >> tri =: 3 : 0
> >> |:(-i.$y)|.!.0"0 1 y
> >> )
> >>
> >> m =: tri q
> >> 4 0 0 0 0 0
> >> 2 4 0 0 0 0
> >> 1 2 4 0 0 0
> >> 3 1 2 4 0 0
> >> 1 3 1 2 4 0
> >> 2 1 3 1 2 4
> >
> >Also
> >
> >   ]\.&.|. 4 2 1 3 1 2
> >4 0 0 0 0 0
> >2 4 0 0 0 0
> >1 2 4 0 0 0
> >3 1 2 4 0 0
> >1 3 1 2 4 0
> >2 1 3 1 2 4
>
>
> It took me a little while to work out (]\.&.|.) :
> (|.^:_1)]\.|. q
>
> 4 0 0 0 0 0
> 2 4 0 0 0 0
> 1 2 4 0 0 0
> 3 1 2 4 0 0
> 1 3 1 2 4 0
> 2 1 3 1 2 4
>
>
> Doing so has helped me tremendously in understating Tacit programming.
>
> also
>
> |."2]\.|. q
>
> 4 0 0 0 0 0
> 2 4 0 0 0 0
> 1 2 4 0 0 0
> 3 1 2 4 0 0
> 1 3 1 2 4 0
> 2 1 3 1 2 4
>
>
> I noted if [EMAIL PROTECTED] > 1 then none of these definitions match, I am 
> not sure if
> that is relevant to the original problem
>
>
> q =. 4 2 1 3 1 2
>
>    (]\.&.|. q)-:(tri q)
> 1
>    (]\.&.|. q)-:(|."2]\.|. q)
> 1
>
>    q =. i. 6 6
>    (]\.&.|. q)-:(tri q)
> 0
>    (]\.&.|. q)-:(|."2]\.|. q)
> 0
>    (tri q)-:(|."2]\.|. q)
> 0
>
> I was wondering how members of the forum go about construction of Tacit
> statements?  Do you write out the long hand version eg (vi u v y) and then
> realise that (vi u v y ↔ u&.v y) or does familiarity with the language
> bring with it the ability to jump straight to the more concise definition?
>
>
> Patrick
>
>
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>



-- 
Devon McCormick, CFA
^me^ at acm.
org is my
preferred e-mail
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to