diff --git a/+misc/binomial.m b/+misc/binomial.m index a382b634772300767bf3ce5d5cb90a487d44d8ae..15ff6d99d401a0f6d3e98f91c96bbe8e040cf874 100644 --- a/+misc/binomial.m +++ b/+misc/binomial.m @@ -1,6 +1,11 @@ function b = binomial(p, k) -%UNTITLED Summary of this function goes here -% Detailed explanation goes here +% BINOMIAL computation of the binomial coefficient +% b = binomial(p, k) computes the binomial coefficient: +% / p \ p!^p +% | | = ----------- +% \ k / (p-k)! k! +% to use this for fractional calculus, the p can be an integer. Then, the faculty is replaced by the +% gamma function. arguments p (1,1) double; k (1,1) double {mustBeInteger};