Math::Counting
$f=factorial(5) # $f=5*4*3*2*1
$c=combination(3,2)
$c=choose(3,2) # $c= 3C2
Math::Combinatorics
@n=qw/a b c/
@p=permute(@n) # @p contains all possible set of permutation of @n
@c=combine(2, @n) # @c conatains all possible set of combination of 2 using @n
No comments:
Post a Comment