Main > Programming > Libraries >

Math::Combinatorics 0.09

Math::Combinatorics 0.09

Sponsored Links

Math::Combinatorics 0.09 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 0.010 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 855
Date added: 2007-06-28
Publisher: Allen Day

Math::Combinatorics 0.09 description

Math::Combinatorics is a Perl module that can perform combinations and permutations on lists.

SYNOPSIS

Available as an object oriented API.

use Math::Combinatorics;

my @n = qw(a b c);
my $combinat = Math::Combinatorics->new(count => 2,
data => [@n],
);

print "combinations of 2 from: ".join(" ",@n)."n";
print "------------------------".("--" x scalar(@n))."n";
while(my @combo = $combinat->next_combination){
print join( , @combo)."n";
}

print "n";

print "permutations of 3 from: ".join(" ",@n)."n";
print "------------------------".("--" x scalar(@n))."n";
while(my @permu = $combinat->next_permutation){
print join( , @permu)."n";
}

output:

Or available via exported functions permute, combine, and factorial.

use Math::Combinatorics;

my @n = qw(a b c);
print "combinations of 2 from: ".join(" ",@n)."n";
print "------------------------".("--" x scalar(@n))."n";
print join("n", map { join " ", @$_ } combine(2,@n)),"n";
print "n";
print "permutations of 3 from: ".join(" ",@n)."n";
print "------------------------".("--" x scalar(@n))."n";
print join("n", map { join " ", @$_ } permute(@n)),"n";

Output:

combinations of 2 from: a b c
------------------------------
a b
a c
b c

permutations of 3 from: a b c
------------------------------
a b c
a c b
b a c
b c a
c a b
c b a

Output from both types of calls is the same, but the object-oriented approach consumes much less memory for large sets.

Math::Combinatorics 0.09 Screenshot

Advertisements

Math::Combinatorics 0.09 Keywords

Bookmark Math::Combinatorics 0.09

Hyperlink code:
Link for forum:

Math::Combinatorics 0.09 Copyright

WareSeeker periodically updates pricing and software information of Math::Combinatorics 0.09 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Math::Combinatorics 0.09 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
Algorithm::Combinatorics Perl module is an efficient generator of combinatorial sequences. Free Download
Math::Zap::Matrix is a Perl module for 3*3 matrix manipulation. Free Download
CGI::Utils is a Perl module for retrieving information through the Common Gateway Interface and mod_perl. Free Download
Math::Zap::Matrix2 is a Perl module for 2*2 matrix manipulation. Free Download
Math::Numbers is a Perl module that contains methods for mathematical approaches of concepts of the number theory. Free Download
Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. Free Download
Math::Symbolic::Compiler is a Perl module that can compile Math::Symbolic trees to Perl code. Free Download
PermComb is pure perl module for performing permutations and combinations of an arbitrary list. Free Download