Math::Combinatorics 0.09
Sponsored Links
Math::Combinatorics 0.09 Ranking & Summary
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.
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
Math::Combinatorics 0.09 Keywords
Combinatorics 0.09
Combinations and permutations
B C
Perl module
Can Perform
n
print
c
b
join
combinations
Math::Combinatorics
MathCombinatorics
Math::Combinatorics 0.09
Libraries
Programming
Bookmark Math::Combinatorics 0.09
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
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
permutations and combinations
combinatorics
combinations and permutations formula
combinations and permutations calculator
combinations and permutations worksheet
difference between combinations and permutations
printers
chris brown
math combinations and permutations
printer
printable calendars
combinations and permutations problems
printable calendar
joint typhoon warning center
printers and faxes
combinations and permutations math
hp printers
join orkut
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
Latest Software
Popular Software
Favourite Software