!
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
y
is a negative integer:- if
x
is a positive integer,r
is(¯1*x)×x!x-y+1
- if
x
is an integer less than or equal toy
,r
is(¯1*y-x)×(y-x)!-k+1
- if
x
is an integer,r
is0
- if
x
is not an integer, fails
- if
- if
x
andy
are integers and ifx
is negative or greater thany
,r
is0
- otherwise,
r
is(!y)÷x×⍥!y-x