Thank you very much!- Bo
 

    Den 15:07 fredag den 25. december 2015 skrev David Lambert 
<[email protected]>:
 
 

     FIFA=.[([:+/!*2^-@>:@])(+i.&>:)

    FIFA b. 0  NB. FIFA has infinite rank
_ _ _


    + b. 0      NB. You need rank 0
0 0 0


    FIFA"0/~i.4x        NB. the table
  1r2  3r4  7r8 15r16
  1r4  1r2 11r16 13r16
  1r8 5r16  1r2 21r32
1r16 3r16 11r32  1r2



    NB. FIFA_NAUGHT requires rank 0
    NB. thus I'd make it part of the definition
    FIFA=. ([([:+/!*2^-@>:@])(+i.&>:))"0



    FIFA_NAUGHT/~i.4
    0.5  0.75  0.875  0.9375
  0.25    0.5  0.6875  0.8125
  0.125 0.3125    0.5 0.65625
0.0625 0.1875 0.34375    0.5



> Date: Fri, 25 Dec 2015 11:05:27 +0000 (UTC)
> From: "'Bo Jacoby' via Programming"<[email protected]>
> To: Programming Forum<[email protected]>
> Subject: [Jprogramming] Work-around for FIFA/
> Message-ID:
>     <[email protected]>
> Content-Type: text/plain; charset=UTF-8
>
> Dear experts.
> This program works correctly for scalar input.
> FIFA=.[([:+/!*2^-@>:@])(+i.&>:)
> ? ?2 FIFA 30.65625
> It is the probability that the winning team of a soccermatch that ended 2-3, 
> is indeed the better of the two teams.
> I want a table, but (i.11)FIFA/ i.11 doesn't do it. What is the work-around?
> Thanks. Bo.

----------------------------------------------------------------------
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