bestfit=:(],0{&<.&<.0.5+(1+0.01*_15+(?@(30"_)))*(((+/ % #)*1+#)-(+/)))
    bestfit 90 90 90
90 90 90 101
    bestfit 90 90 90
90 90 90 102
    bestfit 90 90 90
90 90 90 103
    bestfit 90 90 90
90 90 90 78

Henry Rich

On 10/5/2011 5:19 AM, Gian Medri wrote:
> Hi!
>   I have a function:
> bestfit=:(],0{&<.&<.0.5+(1+0.01*(?30)-15)*(((+/ % #)*1+#)-(+/)))
> that calculates the n+1 element.
> bestfit 90 90 90
> 90 90 90 81
> The tacit form doesn't work properly, because the "?" is not active every
> time I call bestfit 90 90 90.
> When I use
> (],0{&<.&<.0.5+(1+0.01*(?50)-25)*(((+/ % #)*1+#)-(+/))) 90 90 90
>   then the function works properly.
>
> My question is if it is possible to have a tacit verb with the "?" active.
>
> Thanks
>
> Gian Medri
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to