I implemented Jan-Pieter's idea like this
Hyp=.1 :(':';'(y!m)*x H.(1+m-y)1')
(1&{,[:%:2*2&{-2!1&{)@(%{.)(1+(K,n)-k)(K+n-k)Hyp"1 0 i.3
45 35.4965
Thank you very much!
Den 16:01 torsdag den 10. juli 2014 skrev Kip Murray <[email protected]>:
>
>
>Remind us what a and b are.
>
>On Thursday, July 10, 2014, Brian Schott <[email protected]> wrote:
>
>> I was trying to do the following but continue to get syntax errors with it.
>>
>> p(4 :'(0!x)*q H.(1+x-0)')1
>> |syntax error
>> | p (4 :'(0!x)*q H.(1+x-0)')
>>
>> So I looked at the definition of the conjunction H. in Dictionary at
>> http://jsoftware.com/help/dictionary/dhcapdot.htm
>> and am getting an error even with the example taken from the Dictionary
>> example as shown below. Why is m a value error?
>>
>> rf=: 1 : '(,m) ^!.1/ i.@[' NB. Rising factorial
>> L1=: 2 : 'm rf %&(*/) n rf'
>> L2=: (i.@[ ^~ ]) % !@i.@[
>> H =: 2 : '(m L1 n +/ . * L2) " 0'
>> t=: 4 [ z=: 7
>> t a H b z
>> |value error: m
>> | ( m L1 n+/ .*L2)"0
>>
>> The two errors are likely unrelated, but I would like to understand them.
>>
>>
>>
>> --
>> (B=)
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>--
>Sent from Gmail Mobile
>
>----------------------------------------------------------------------
>For information about J forums see http://www.jsoftware.com/forums.htm
>
>
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm