Mercurial > hg > mauch-mirex-2010
view _FullBNT/KPMtools/factorial.m @ 9:4ea6619cb3f5 tip
removed log files
author | matthiasm |
---|---|
date | Fri, 11 Apr 2014 15:55:11 +0100 |
parents | b5b38998ef3b |
children |
line wrap: on
line source
function x = factorial(n) % FACTORIAL Compute n! % x = factorial(n) if n == 0 x = 1; else x = n*factorial(n-1); end