From e76d20c0665d6a6b29d810b33bb5c63edbb8eae3 Mon Sep 17 00:00:00 2001 From: Ferdinand Fischer <ferdinand.fischer@uni-ulm.de> Date: Wed, 23 Sep 2020 16:55:49 +0200 Subject: [PATCH] added documentation --- +misc/binomial.m | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/+misc/binomial.m b/+misc/binomial.m index a382b63..15ff6d9 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}; -- GitLab