! Binomial r←x!y
r is the result of the scalar application of the binomial function, , it represents the ways of picking x things from y things.
For non-positive integer arguments, the following operation is performed:
- if
yis a negative integer:- if
xis a positive integer,ris(¯1*x)×x!x-y+1 - if
xis an integer less than or equal toy,ris(¯1*y-x)×(y-x)!-k+1 - if
xis an integer,ris0 - if
xis not an integer, fails
- if
- if
xandyare integers and ifxis negative or greater thany,ris0 - otherwise,
ris(!y)÷x×⍥!y-x