windows version numbers
Sponsored Links
Sponsored Links
Secleted [ 0 ] software to compare
Results 1 - 15 of about 3322
Linux Letters and Numbers 0.1.95
Linux Letters and Numbers project is an educational childrens game for linux. more>>
Linux Letters and Numbers project is an educational childrens game for linux.
Linux Letters and Number is a fun and educational learning game intended for children 2 and up.
It helps children learn or improve their letters, numbers, spelling, and vocabulary skills through the use of interesting pictures.
It also helps them develop important computer skills too.
It is written in C using the GTK and GDK_Imlib libraries.
Main features:
- Extensible - add new images yourself without having to make changes to the program. With support for gdk_imlib, you can now use common image formats, including common formats like gif, jpeg, xpm, png, and tiff.
- Dynamic - each letter or number can be represented by numerous pictures, each being displayed randomly.
- Flexible - you can even have more than one picture for a given word, by using a simple versioning scheme (ie Apple.1.xpm, Apple.2.xpm)
- Interesting - because you can change the game, its different every time!
<<lessLinux Letters and Number is a fun and educational learning game intended for children 2 and up.
It helps children learn or improve their letters, numbers, spelling, and vocabulary skills through the use of interesting pictures.
It also helps them develop important computer skills too.
It is written in C using the GTK and GDK_Imlib libraries.
Main features:
- Extensible - add new images yourself without having to make changes to the program. With support for gdk_imlib, you can now use common image formats, including common formats like gif, jpeg, xpm, png, and tiff.
- Dynamic - each letter or number can be represented by numerous pictures, each being displayed randomly.
- Flexible - you can even have more than one picture for a given word, by using a simple versioning scheme (ie Apple.1.xpm, Apple.2.xpm)
- Interesting - because you can change the game, its different every time!
Download (0.17MB)
Added: 2006-10-27 License: GPL (GNU General Public License) Price:
1097 downloads
Sort::Versions 1.5
Sort::Versions is a Perl 5 module for sorting of revision-like numbers. more>>
Sort::Versions is a Perl 5 module for sorting of revision-like numbers.
SYNOPSIS
use Sort::Versions;
@l = sort { versioncmp($a, $b) } qw( 1.2 1.2.0 1.2a.0 1.2.a 1.a 02.a );
...
use Sort::Versions;
print lower if versioncmp(1.2, 1.2a) == -1;
...
use Sort::Versions;
%h = (1 => d, 2 => c, 3 => b, 4 => a);
@h = sort { versioncmp($h{$a}, $h{$b}) } keys %h;
Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, like the version numbers that many shared library systems and revision control packages use. This is quite useful if you are trying to deal with shared libraries. It can also be applied to applications that intersperse variable-width numeric fields within text. Other applications can undoubtedly be found.
For an explanation of the algorithm, its simplest to look at these examples:
1.1 < 1.2
1.1a < 1.2
1.1 < 1.1.1
1.1 < 1.1a
1.1.a < 1.1a
1 < a
a < b
1 < 2
1.1-3 < 1.1-4
1.1-5 < 1.1.6
More precisely (but less comprehensibly), the two strings are treated as subunits delimited by periods or hyphens. Each subunit can contain any number of groups of digits or non-digits. If digit groups are being compared on both sides, a numeric comparison is used, otherwise a ASCII ordering is used. A group or subgroup with more units will win if all comparisons are equal. A period binds digit groups together more tightly than a hyphen.
Some packages use a different style of version numbering: a simple real number written as a decimal. Sort::Versions has limited support for this style: when comparing two subunits which are both digit groups, if either subunit has a leading zero, then both are treated like digits after a decimal point. So for example:
0002 < 1
1.06 < 1.5
This wont always work, because there wont always be a leading zero in real-number style version numbers. There is no way for Sort::Versions to know which style was intended. But a lot of the time it will do the right thing. If you are making up version numbers, the style with (possibly) more than one dot is the style to use.
USAGE
The function versioncmp() takes two arguments and compares them like cmp. With perl 5.6 or later, you can also use this function directly in sorting:
@l = sort versioncmp qw(1.1 1.2 1.0.3);
The function versions() can be used directly as a sort function even on perl 5.005 and earlier, but its use is deprecated.
<<lessSYNOPSIS
use Sort::Versions;
@l = sort { versioncmp($a, $b) } qw( 1.2 1.2.0 1.2a.0 1.2.a 1.a 02.a );
...
use Sort::Versions;
print lower if versioncmp(1.2, 1.2a) == -1;
...
use Sort::Versions;
%h = (1 => d, 2 => c, 3 => b, 4 => a);
@h = sort { versioncmp($h{$a}, $h{$b}) } keys %h;
Sort::Versions allows easy sorting of mixed non-numeric and numeric strings, like the version numbers that many shared library systems and revision control packages use. This is quite useful if you are trying to deal with shared libraries. It can also be applied to applications that intersperse variable-width numeric fields within text. Other applications can undoubtedly be found.
For an explanation of the algorithm, its simplest to look at these examples:
1.1 < 1.2
1.1a < 1.2
1.1 < 1.1.1
1.1 < 1.1a
1.1.a < 1.1a
1 < a
a < b
1 < 2
1.1-3 < 1.1-4
1.1-5 < 1.1.6
More precisely (but less comprehensibly), the two strings are treated as subunits delimited by periods or hyphens. Each subunit can contain any number of groups of digits or non-digits. If digit groups are being compared on both sides, a numeric comparison is used, otherwise a ASCII ordering is used. A group or subgroup with more units will win if all comparisons are equal. A period binds digit groups together more tightly than a hyphen.
Some packages use a different style of version numbering: a simple real number written as a decimal. Sort::Versions has limited support for this style: when comparing two subunits which are both digit groups, if either subunit has a leading zero, then both are treated like digits after a decimal point. So for example:
0002 < 1
1.06 < 1.5
This wont always work, because there wont always be a leading zero in real-number style version numbers. There is no way for Sort::Versions to know which style was intended. But a lot of the time it will do the right thing. If you are making up version numbers, the style with (possibly) more than one dot is the style to use.
USAGE
The function versioncmp() takes two arguments and compares them like cmp. With perl 5.6 or later, you can also use this function directly in sorting:
@l = sort versioncmp qw(1.1 1.2 1.0.3);
The function versions() can be used directly as a sort function even on perl 5.005 and earlier, but its use is deprecated.
Download (0.005MB)
Added: 2007-05-22 License: Perl Artistic License Price:
885 downloads
Convert::Number::Digits 0.03
Convert::Number::Digits is a Perl module that convert Digits Between the Scripts of Unicode. more>>
Convert::Number::Digits is a Perl module that convert Digits Between the Scripts of Unicode.
SYNOPSIS
use utf8;
require Convert::Number::Digits;
my $number = 12345;
my $d = new Convert::Number::Digits ( $number );
print "$number => ", $d->toArabic, "n";
my $gujarti = $d->toGujarti;
my $khmer = reverse ( $d->toKhmer );
$d->number ( $khmer ); # reset the number
print "$number => $gujarti => ", $d->number, " => ", $n->convert, "n";
The Convert::Number::Digits will convert a sequence of digits from one script supported in Unicode, into another. UTF-8 encoding is used for all scripts.
<<lessSYNOPSIS
use utf8;
require Convert::Number::Digits;
my $number = 12345;
my $d = new Convert::Number::Digits ( $number );
print "$number => ", $d->toArabic, "n";
my $gujarti = $d->toGujarti;
my $khmer = reverse ( $d->toKhmer );
$d->number ( $khmer ); # reset the number
print "$number => $gujarti => ", $d->number, " => ", $n->convert, "n";
The Convert::Number::Digits will convert a sequence of digits from one script supported in Unicode, into another. UTF-8 encoding is used for all scripts.
Download (0.005MB)
Added: 2006-08-02 License: Perl Artistic License Price:
1178 downloads
Lingua::EN::WordsToNumbers 0.11
Lingua::EN::WordsToNumbers is Perl module to convert numbers written in English to actual numbers. more>>
Lingua::EN::WordsToNumbers is Perl module to convert numbers written in English to actual numbers.
This module is an OO wrapper for Lingua::EN::Words2Nums, which is very nice, but has an unfortunate name (which doesnt help when youre searching CPAN for modules that turn words into numbers).
SYNOPSIS
use Lingua::EN::WordsToNumbers;
my $numberizer = Lingua::EN::WordsToNumbers->new;
print $numberizer->parse("Forty-two"); # "42"
$numberizer->debug(1); # debug on
$numberizer->debug(undef); # debug off
$numberizer->billion(10**12); # use "English billion"
METHODS
new
my $numberizer = Lingua::EN::WordsToNumbers->new;
Gives you a new "object". Doesnt really do much.
parse
print $numberizer->parse("Forty-two"); # "42"
An alias for Lingua::EN::Words2Numss words2nums method. Read that modules documentation to see how it works. You can also call this method as words2nums if you really want to.
debug
$numberizer->debug(1);
Set Lingua::EN::Words2Nums debug mode. True values are on, anything else is off.
billion
$numberizer->billion(10**12);
Define the value of a billion ($Lingua::EN::Words2Nums::billion).
<<lessThis module is an OO wrapper for Lingua::EN::Words2Nums, which is very nice, but has an unfortunate name (which doesnt help when youre searching CPAN for modules that turn words into numbers).
SYNOPSIS
use Lingua::EN::WordsToNumbers;
my $numberizer = Lingua::EN::WordsToNumbers->new;
print $numberizer->parse("Forty-two"); # "42"
$numberizer->debug(1); # debug on
$numberizer->debug(undef); # debug off
$numberizer->billion(10**12); # use "English billion"
METHODS
new
my $numberizer = Lingua::EN::WordsToNumbers->new;
Gives you a new "object". Doesnt really do much.
parse
print $numberizer->parse("Forty-two"); # "42"
An alias for Lingua::EN::Words2Numss words2nums method. Read that modules documentation to see how it works. You can also call this method as words2nums if you really want to.
debug
$numberizer->debug(1);
Set Lingua::EN::Words2Nums debug mode. True values are on, anything else is off.
billion
$numberizer->billion(10**12);
Define the value of a billion ($Lingua::EN::Words2Nums::billion).
Download (0.003MB)
Added: 2006-08-23 License: Perl Artistic License Price:
1158 downloads
sudoku solver by darsie 1.6
sudoku solver by darsie is a console-based sudoku solver. more>>
sudoku solver by darsie project is a console-based sudoku solver.
sudoku solver by darsie is a console program that reads data from stdin (typically redirected from a file) and prints a possibly partial result. Definitive numbers are printed all over their fields.
Other fields contain the numbers that are not yet excluded.
Three solving rules are implemented and most sudokus are solved in a few milliseconds.
Usage:
sudoku<<less
sudoku solver by darsie is a console program that reads data from stdin (typically redirected from a file) and prints a possibly partial result. Definitive numbers are printed all over their fields.
Other fields contain the numbers that are not yet excluded.
Three solving rules are implemented and most sudokus are solved in a few milliseconds.
Usage:
sudoku<<less
Download (0.035MB)
Added: 2007-01-02 License: GPL (GNU General Public License) Price:
1029 downloads
Free Unlisted Phone Numbers Lookup Tool 2.0
With the Free Unlisted Phone Numbers Lookup Tool, You Can Input Unknown Numbers and Run them Across Databases of Phone Numbers to See if the Owners I... more>> <<less
Download (532KB)
Added: 2009-04-14 License: Freeware Price: Free
195 downloads
Scalar::Number 0.001
Scalar::Number is a Perl module with numeric aspects of scalars. more>>
Scalar::Number is a Perl module with numeric aspects of scalars.
SYNOPSIS
use Scalar::Number qw(scalar_num_part);
$num = scalar_num_part($scalar);
use Scalar::Number qw(sclnum_is_natint sclnum_is_float);
if(sclnum_is_natint($value)) { ...
if(sclnum_is_float($value)) { ...
use Scalar::Number qw(sclnum_val_cmp sclnum_id_cmp);
@sorted_nums = sort { sclnum_val_cmp($a, $b) } @floats;
@sorted_nums = sort { sclnum_id_cmp($a, $b) } @floats;
This module is about the numeric part of plain (string) Perl scalars. A scalar has a numeric value, which may be expressed in either the native integer type or the native floating point type. Many values are expressible both ways, in which case the exact representation is insignificant. To fully understand Perl arithmetic it is necessary to know about both of these representations, and the differing behaviours of numbers according to which way they are expressible.
This module provides functions to extract the numeric part of a scalar, classify a number by expressibility, and compare numbers across representations.
<<lessSYNOPSIS
use Scalar::Number qw(scalar_num_part);
$num = scalar_num_part($scalar);
use Scalar::Number qw(sclnum_is_natint sclnum_is_float);
if(sclnum_is_natint($value)) { ...
if(sclnum_is_float($value)) { ...
use Scalar::Number qw(sclnum_val_cmp sclnum_id_cmp);
@sorted_nums = sort { sclnum_val_cmp($a, $b) } @floats;
@sorted_nums = sort { sclnum_id_cmp($a, $b) } @floats;
This module is about the numeric part of plain (string) Perl scalars. A scalar has a numeric value, which may be expressed in either the native integer type or the native floating point type. Many values are expressible both ways, in which case the exact representation is insignificant. To fully understand Perl arithmetic it is necessary to know about both of these representations, and the differing behaviours of numbers according to which way they are expressible.
This module provides functions to extract the numeric part of a scalar, classify a number by expressibility, and compare numbers across representations.
Download (0.009MB)
Added: 2007-05-21 License: Perl Artistic License Price:
886 downloads
number 2.30
number is a perl script that will print the English name of a number. more>>
number is a perl script that will print the English name of a number. One can print names of extremely large numbers (e.g. 1e1234567). Number can be run on the command line, or as a CGI script when run as number.cgi.
Number prints names in both the American and European naming system. It can also print the decimal expansion of a number in either naming system.
<<lessNumber prints names in both the American and European naming system. It can also print the decimal expansion of a number in either naming system.
Download (0.028MB)
Added: 2006-09-19 License: Freely Distributable Price:
1130 downloads
Sudoku solver 0.1
Sudoku solver application was created for solving a Sudoku with a backtracking algorithm. more>>
Sudoku solver application was created for solving a Sudoku with a backtracking algorithm. Instead of using a 9 x 9 matrix, it extends the matrix to 10 x 36 (10 rows, 36 columns), storing information in the extra cells.
The last row is used for keeping track of how many cells, for the current column, are still available.
The columns 9-17 (0-based) are used for storing the numbers which are still available in rows 0-8.
The columns 18-26 are used for storing the numbers which are still available in columns 0-8.
The columns 27-35 are used for storing the numbers which are still available in each square (counting from left to right and from top to bottom).
<<lessThe last row is used for keeping track of how many cells, for the current column, are still available.
The columns 9-17 (0-based) are used for storing the numbers which are still available in rows 0-8.
The columns 18-26 are used for storing the numbers which are still available in columns 0-8.
The columns 27-35 are used for storing the numbers which are still available in each square (counting from left to right and from top to bottom).
Download (MB)
Added: 2007-08-20 License: GPL (GNU General Public License) Price:
1712 downloads
Test::Number::Delta 1.03
Test::Number::Delta is a Perl module to compare the difference between numbers against a given tolerance. more>>
Test::Number::Delta is a Perl module to compare the difference between numbers against a given tolerance.
SYNOPSIS
# Import test functions
use Test::Number::Delta;
# Equality test with default tolerance
delta_ok( 1e-5, 2e-5, values within 1e-6);
# Inequality test with default tolerance
delta_not_ok( 1e-5, 2e-5, values not within 1e-6);
# Provide specific tolerance
delta_within( 1e-3, 2e-3, 1e-4, values within 1e-4);
delta_not_within( 1e-3, 2e-3, 1e-4, values not within 1e-4);
# Compare arrays or matrices
@a = ( 3.14, 1.41 );
@b = ( 3.15, 1.41 );
delta_ok( @a, @b, compare @a and @b );
# Set a different default tolerance
use Test::Number::Delta within => 1e-5;
delta_ok( 1.1e-5, 2e-5, values within 1e-5); # ok
# Set a relative tolerance
use Test::Number::Delta relative => 1e-3;
delta_ok( 1.01, 1.0099, values within 1.01e-3);
At some point or another, most programmers find they need to compare floating-point numbers for equality. The typical idiom is to test if the absolute value of the difference of the numbers is within a desired tolerance, usually called epsilon. This module provides such a function for use with Test::Harness. Usage is similar to other test functions described in Test::More. Semantically, the delta_within function replaces this kind of construct:
ok ( abs($p - $q) < $epsilon, $p is equal to $q ) or
diag "$p is not equal to $q to within $epsilon";
While theres nothing wrong with that construct, its painful to type it repeatedly in a test script. This module does the same thing with a single function call. The delta_ok function is similar, but either uses a global default value for epsilon or else calculates a relative epsilon on the fly so that epsilon is scaled automatically to the size of the arguments to delta_ok. Both functions are exported automatically.
Because checking floating-point equality is not always reliable, it is not possible to check the equal to boundary of less than or equal to epsilon. Therefore, Test::Number::Delta only compares if the absolute value of the difference is less than epsilon (for equality tests) or greater than epsilon (for inequality tests).
<<lessSYNOPSIS
# Import test functions
use Test::Number::Delta;
# Equality test with default tolerance
delta_ok( 1e-5, 2e-5, values within 1e-6);
# Inequality test with default tolerance
delta_not_ok( 1e-5, 2e-5, values not within 1e-6);
# Provide specific tolerance
delta_within( 1e-3, 2e-3, 1e-4, values within 1e-4);
delta_not_within( 1e-3, 2e-3, 1e-4, values not within 1e-4);
# Compare arrays or matrices
@a = ( 3.14, 1.41 );
@b = ( 3.15, 1.41 );
delta_ok( @a, @b, compare @a and @b );
# Set a different default tolerance
use Test::Number::Delta within => 1e-5;
delta_ok( 1.1e-5, 2e-5, values within 1e-5); # ok
# Set a relative tolerance
use Test::Number::Delta relative => 1e-3;
delta_ok( 1.01, 1.0099, values within 1.01e-3);
At some point or another, most programmers find they need to compare floating-point numbers for equality. The typical idiom is to test if the absolute value of the difference of the numbers is within a desired tolerance, usually called epsilon. This module provides such a function for use with Test::Harness. Usage is similar to other test functions described in Test::More. Semantically, the delta_within function replaces this kind of construct:
ok ( abs($p - $q) < $epsilon, $p is equal to $q ) or
diag "$p is not equal to $q to within $epsilon";
While theres nothing wrong with that construct, its painful to type it repeatedly in a test script. This module does the same thing with a single function call. The delta_ok function is similar, but either uses a global default value for epsilon or else calculates a relative epsilon on the fly so that epsilon is scaled automatically to the size of the arguments to delta_ok. Both functions are exported automatically.
Because checking floating-point equality is not always reliable, it is not possible to check the equal to boundary of less than or equal to epsilon. Therefore, Test::Number::Delta only compares if the absolute value of the difference is less than epsilon (for equality tests) or greater than epsilon (for inequality tests).
Download (0.018MB)
Added: 2007-01-18 License: Perl Artistic License Price:
1015 downloads
Libuninum 2.5
Libuninum is a library for converting Unicode strings to numbers. more>>
Libuninum is a library for converting Unicode strings to numbers. Standard functions like strtoul and strtod do this for numbers written in the usual Western number system using the Indo-Arabic numerals, but they do not handle other number systems.
The main functions take as input a UTF-32 Unicode string and compute the corresponding unsigned integer. For example, they will convert the Chinese string ??????????? to the integer 594,321 and the Devanagari string ????? to the integer 78,492. Internal computation is done using arbitrary precision arithmetic, so there is no limit on the size of the integer that can be converted.
The value of the string is returned in one of two forms. One option is a string of ASCII characters containing the decimal representation of the integer using the Indo-Arabic digits. This option has the virtue of avoiding any possibility of overflow or truncation. The other option is to obtain the value as an unsigned long integer.
If you are going to do internal calculations, this is probably the most convenient option, but some numbers (in fact, infinitely many) will not fit into an unsigned long integer. The library guarantees that no overflow or truncation will occur; if the number will not fit, it sets an error flag and returns 0.
Enhancements:
- This version adds support for the more exotic forms of Roman numerals.
- Roman numeral compatibility characters are now accepted.
<<lessThe main functions take as input a UTF-32 Unicode string and compute the corresponding unsigned integer. For example, they will convert the Chinese string ??????????? to the integer 594,321 and the Devanagari string ????? to the integer 78,492. Internal computation is done using arbitrary precision arithmetic, so there is no limit on the size of the integer that can be converted.
The value of the string is returned in one of two forms. One option is a string of ASCII characters containing the decimal representation of the integer using the Indo-Arabic digits. This option has the virtue of avoiding any possibility of overflow or truncation. The other option is to obtain the value as an unsigned long integer.
If you are going to do internal calculations, this is probably the most convenient option, but some numbers (in fact, infinitely many) will not fit into an unsigned long integer. The library guarantees that no overflow or truncation will occur; if the number will not fit, it sets an error flag and returns 0.
Enhancements:
- This version adds support for the more exotic forms of Roman numerals.
- Roman numeral compatibility characters are now accepted.
Download (0.38MB)
Added: 2007-06-12 License: LGPL (GNU Lesser General Public License) Price:
864 downloads
Tree::Numbered 2.02
Tree::Numbered is a thin N-ary tree structure with a unique number for each item. more>>
Tree::Numbered is a thin N-ary tree structure with a unique number for each item.
SYNOPSYS
use Tree::Numbered;
my $tree = Tree::Numbered->new(John Doe);
$tree->append(John Doe Jr.);
$tree->append(Marry-Jane Doe);
while (my $branch = $tree->nextNode) {
$branch->delete if ($branch->getValue eq Stuff I dont want);
}
my $itemId = what_the_DB_says;
print join --- , $tree->follow($itemId); # a list of items up to itemId.
$tree->allProcess( sub {
my $self = shift;
$self->getValue =~ /^(S*)/;
$self->addField(FirstName, $1);
} );
etc.
Tree::Numbered is a special N-ary tree with a number for each node. This is useful on many occasions. The first use I found for that (and wrote this for) was to store information about the selected item as a number instead of storing the whole value which is space-expensive.
Every tree also has a lucky number of his own that distinguishes it from other trees created by the same module. This module is thin on purpose and is meant to be a base class for stuff that can make use of this behaveiour. For example, I wrote Tree::Numbered::DB which ties a tree to a table in a database, and Javascript::Menu which uses this tree to build menus for websites.
One more feature that the module implements for the ease of subclassing it is an API for adding and removing fields from trees and nodes.
<<lessSYNOPSYS
use Tree::Numbered;
my $tree = Tree::Numbered->new(John Doe);
$tree->append(John Doe Jr.);
$tree->append(Marry-Jane Doe);
while (my $branch = $tree->nextNode) {
$branch->delete if ($branch->getValue eq Stuff I dont want);
}
my $itemId = what_the_DB_says;
print join --- , $tree->follow($itemId); # a list of items up to itemId.
$tree->allProcess( sub {
my $self = shift;
$self->getValue =~ /^(S*)/;
$self->addField(FirstName, $1);
} );
etc.
Tree::Numbered is a special N-ary tree with a number for each node. This is useful on many occasions. The first use I found for that (and wrote this for) was to store information about the selected item as a number instead of storing the whole value which is space-expensive.
Every tree also has a lucky number of his own that distinguishes it from other trees created by the same module. This module is thin on purpose and is meant to be a base class for stuff that can make use of this behaveiour. For example, I wrote Tree::Numbered::DB which ties a tree to a table in a database, and Javascript::Menu which uses this tree to build menus for websites.
One more feature that the module implements for the ease of subclassing it is an API for adding and removing fields from trees and nodes.
Download (0.026MB)
Added: 2006-06-12 License: GPL (GNU General Public License) Price:
1229 downloads
isdnMonitor 0.4 Beta
isdnMonitor saves call information (number, name, connection, and duration) in a MySQL database. more>>
isdnMonitor saves call information (number, name, connection, and duration) in a MySQL database.
The project does inverse searches for German phone numbers, enables notifying clients via the Windows/SMB messaging service, and displays caller names on an LCD display via LCDproc.
<<lessThe project does inverse searches for German phone numbers, enables notifying clients via the Windows/SMB messaging service, and displays caller names on an LCD display via LCDproc.
Download (0.064MB)
Added: 2007-06-04 License: GPL (GNU General Public License) Price:
872 downloads
Generate Numly Copyright 1.3
Generate Numly Copyright is a Firefox extension that registers documents and blogs for Numly copyright. more>>
Generate Numly Copyright is a Firefox extension that registers documents and blogs for Numly copyright. Numly Numbers are unique identifiers of electronic media and recognized worldwide by electronic publishing companies and electronic content providers. Numly Numbers are simple and quick to generate and serve as branded identifier for individuals or companies authoring or distributing electronic content and media.
<<less Download (0.006MB)
Added: 2007-06-06 License: MPL (Mozilla Public License) Price:
878 downloads
Math::Numbers 0.000000001
Math::Numbers is a Perl module that contains methods for mathematical approaches of concepts of the number theory. more>>
Math::Numbers is a Perl module that contains methods for mathematical approaches of concepts of the number theory.
SYNOPSIS
use Math::Numbers;
my $a = 123;
my $b = 34;
my $numbers = Math::Numbers->new($a, $b [, ...]);
print "They are coprimes (relatively primes)!n" if $numbers->are_coprimes;
print "The greatest common divisor of these at least two numbers is ", $numbers->gcd;
my $number = Math::Numbers->new($a);
print "It is prime!n" if $number->is_prime;
my @divisors = $number->get_divisors;
print "$a is divisor of $b!n" if $number->is_divisor_of($b);
Math::Numbers is quite a simple module on matters of programming. What its interesting is the focus and approach it is intended to be made from the Number Theory basis for Perl beginners (like me) and also for young mathematicians (like me).
The normal topics of Number Theory include divisibility, prime numbers (which is separately intended to be covered by Math::Primes), congruences, quadratic residues, approximation for Real numbers, diophantine equations, etc. and all this is intended to be convered by the module on the concept on getting and setting values and also retriving the proof methods.
METHODS
new
# Some methods require more than only one argument.
my $numbers = Math::Numbers->new($p, $q, ...);
# Some methods require only one.
my $number = Math::Numbers->new($p);
Create a Math::Numbers object. Note that some of the methods will require objects created with only one or a defined numbers of arguments.
gcd
my $gcd = $numbers->gcd;
Calculation of the Greatest Common Divisor. This is made by two different methods which are described below: Blutos algorithm and Euclidean algorithm: The former is used when computing GCD for more than two integers; the latter is used when getting the GCD for two numbers to improve speed. See below for information on each.
Bluto_algorithm
You will mostly not require to call this method, but directly gcd(). Blutos algorithm uses a brute force calculation used by mathematicians to get divisors and then GCD also called Primality Test. Bluto takes some spinaches stolen from Popeye and starts dividing m all the way through 2 to m/2.
Euclidean_algorithm
Euclid rocks. I have a very nice Budgerigar (http://en.wikipedia.org/wiki/Budgerigar) called the same in honor of him (have to upload a pic of him).
As of now, this algorithm is only computed on two integers. From the Wikipedia entry: Given two natural numbers a and b: check if b is zero; if yes, a is the gcd. If not, repeat the process using (respectively) b, and the remainder after dividing a by b. This is exactly what our method does.
is_divisor_of
print "Yes, $p is divisor of $a...n" if $number->is_divisor_of($a);
Lets see if the number from the object is a divisor of $a, which means that the division $number/$a will return an integer (not necesarily a natural). If it does, itll return 1; 0, otherwise.
get_divisors
my @divisors = $number->get_divisors;
What are the divisors of the number brought by the object? This only includes the Natural numbers.
is_prime
print "$p is not prime!n" unless $number->is_prime
Returns 0 or 1 if the number from the object is prime or not, respectively. This method uses the, a bit slow, primality test.
are_coprimes
print "They are coprimes because their GCD is 1!n" if $numbers->are_coprimes;
Are the numbers from the object coprimes (relatively primes)? This means, the GCD is 1; (a, b, c, ...) = 1. Returns 1 or 0.
<<lessSYNOPSIS
use Math::Numbers;
my $a = 123;
my $b = 34;
my $numbers = Math::Numbers->new($a, $b [, ...]);
print "They are coprimes (relatively primes)!n" if $numbers->are_coprimes;
print "The greatest common divisor of these at least two numbers is ", $numbers->gcd;
my $number = Math::Numbers->new($a);
print "It is prime!n" if $number->is_prime;
my @divisors = $number->get_divisors;
print "$a is divisor of $b!n" if $number->is_divisor_of($b);
Math::Numbers is quite a simple module on matters of programming. What its interesting is the focus and approach it is intended to be made from the Number Theory basis for Perl beginners (like me) and also for young mathematicians (like me).
The normal topics of Number Theory include divisibility, prime numbers (which is separately intended to be covered by Math::Primes), congruences, quadratic residues, approximation for Real numbers, diophantine equations, etc. and all this is intended to be convered by the module on the concept on getting and setting values and also retriving the proof methods.
METHODS
new
# Some methods require more than only one argument.
my $numbers = Math::Numbers->new($p, $q, ...);
# Some methods require only one.
my $number = Math::Numbers->new($p);
Create a Math::Numbers object. Note that some of the methods will require objects created with only one or a defined numbers of arguments.
gcd
my $gcd = $numbers->gcd;
Calculation of the Greatest Common Divisor. This is made by two different methods which are described below: Blutos algorithm and Euclidean algorithm: The former is used when computing GCD for more than two integers; the latter is used when getting the GCD for two numbers to improve speed. See below for information on each.
Bluto_algorithm
You will mostly not require to call this method, but directly gcd(). Blutos algorithm uses a brute force calculation used by mathematicians to get divisors and then GCD also called Primality Test. Bluto takes some spinaches stolen from Popeye and starts dividing m all the way through 2 to m/2.
Euclidean_algorithm
Euclid rocks. I have a very nice Budgerigar (http://en.wikipedia.org/wiki/Budgerigar) called the same in honor of him (have to upload a pic of him).
As of now, this algorithm is only computed on two integers. From the Wikipedia entry: Given two natural numbers a and b: check if b is zero; if yes, a is the gcd. If not, repeat the process using (respectively) b, and the remainder after dividing a by b. This is exactly what our method does.
is_divisor_of
print "Yes, $p is divisor of $a...n" if $number->is_divisor_of($a);
Lets see if the number from the object is a divisor of $a, which means that the division $number/$a will return an integer (not necesarily a natural). If it does, itll return 1; 0, otherwise.
get_divisors
my @divisors = $number->get_divisors;
What are the divisors of the number brought by the object? This only includes the Natural numbers.
is_prime
print "$p is not prime!n" unless $number->is_prime
Returns 0 or 1 if the number from the object is prime or not, respectively. This method uses the, a bit slow, primality test.
are_coprimes
print "They are coprimes because their GCD is 1!n" if $numbers->are_coprimes;
Are the numbers from the object coprimes (relatively primes)? This means, the GCD is 1; (a, b, c, ...) = 1. Returns 1 or 0.
Download (0.004MB)
Added: 2007-07-13 License: Perl Artistic License Price:
833 downloads
Secleted [ 0 ] software to compare
Copyright Notice:
Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future software development. The above windows version numbers search only lists software in full, demo and trial versions for free download. Download links are directly from our mirror sites or publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed