Math::Counting

Combinatorial counting operations
Download

Math::Counting Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Gene Boggs
  • Publisher web site:
  • http://search.cpan.org/~gene/

Math::Counting Tags


Math::Counting Description

Math::Counting is a Perl module to compute the factorial, number of permutations and number of combinations for either engineers or CS students.The engineer (i.e. :big) version is a "thin wrapper" around "bfac" in Math::BigInt, and a bit of arithmatic.The student version exists to illustrate the computation.SYNOPSIS use Math::Counting ':student'; # Logical, Academic printf "Given n=%d and r=%d:\nFact=%d\nPerm=%d\nComb=%d\n", $n, $r, factorial($n), permutation($n, $r), combination($n, $r); use Math::Counting ':big'; # Engineering, Reality printf "n=%d, r=%d:\nBig F=%d\n Big P=%d\nBig C=%d\n", $n, $r, bfact($n), bperm($n, $r), bcomb($n, $r);Product's homepage


Math::Counting Related Software