[Jprogramming] (1 _10)H.(_10)2 evaluates to infinity

'Bo Jacoby' via Programming programming at jsoftware.com
Sat Jun 18 14:35:02 UTC 2016


I was given this hint on how to compute a hypergeometric sum
Wikipedia:Reference desk/Mathematics - Wikipedia, the free encyclopedia

|   |
|   |  |   |   |   |   |   |
| Wikipedia:Reference desk/Mathematics - Wikipedia, the fr...The Wikipedia Reference Desk covering the topic of mathematics. Mathematics #eee #f5f5f5 #eee #aaa #aaa #aaa #00f #36b #000 #00f mathematics Wikipedia:Refe... |
|  |
| Se på en.wikipedia.org | Forhåndsvis efter Yahoo |
|  |
|   |


    F =. 3 : '+/(2^i)*|:(!/~)|.i=.i.>:y'
     S =. 4 : '(y!x)*(1,-y)H.(-x)2'
     G =. 3 : '>y(S&.>)i.>:y'
     F 10 
1 12 67 232 562 1024 1486 1816 1981 2036 2047
    G 10

1 12 67 232 562 1024 1486 1816 1981 2036 _
     wa=. 4 : '((x=y)*<:2^>:x)+(-.x=y)*x S y' NB. work around
     H =. 3 : '>y(wa&.>)i.>:y'
     H 10
1 12 67 232 562 1024 1486 1816 1981 2036 2047
Question: Is it a bug that  (1 _10)H.(_10)2  evaluates to infinity?
Thanks! Bo.


More information about the Programming mailing list