note 123483 deleted from ref.math by cmb
| From: | cmb@php.net | Date: | Tue, 01 Jan 2019 15:55:36 +0000 |
| Subject: | note 123483 deleted from ref.math by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-209980@lists.php.net to get a copy of this message | ||
Note Submitter: watny dot mail at gmail dot com
----
function n_pick_r($n,$r){$n=(int)$n; $r=(int)$r;return (fact($n)/fact($n-$r));}
function n_choose_r($n,$r){$n=(int)$n; $r=(int)$r;return (n_pick_r($n,$r)/fact($r));}
Hope that helps !
exmple:https://www.muhtwa.com