How about this:
NB. I used extended integer to give rationals;
NB. I intended to show a compactly presented table,
NB. but Thunderbird seems to have spoilt it!
FIFA"0/~ i.5x
1r2 3r4 7r8 15r16 31r32
1r4 1r2 11r16 13r16 57r64
1r8 5r16 1r2 21r32 99r128
1r16 3r16 11r32 1r2 163r256
1r32 7r64 29r128 93r256 1r2
It only works for Soccer!
God Jul!
Mike
On 25/12/2015 11:05, 'Bo Jacoby' via Programming wrote:
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
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm