Inverse Math Function
Math::BaseCalc is a Perl module that can convert numbers between various bases. SYNOPSIS use Math::BaseCalc; my $calc = new Math::BaseCalc(digits => [0,1]); #Binary my $bin_string = $calc->to_base(465); # Convert 465 to binary $calc->digits(oct); # Octal my $number =...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (87): Math::BaseCalc Download |
Math::BaseArith is a Perl extension for mixed-base number representation (like APL encode/decode). SYNOPSIS use Math::BaseArith; encode( value, base_list ); decode( representation_list, base_list ); The inspiration for this module is a pair of functions in the APL programming language...
Platforms: *nix
License: Freeware | Size: 6.14 KB | Download (90): Math::BaseArith Download |
Getopt::Function is a Perl module to provide mixed options with help information. SYNOPSIS use Getopt::Function qw(maketrue makevalue); $::opthandler = new Getopt::Function [ ], { => [ , , ] } $result = GetOptions (...option-descriptions...); $::opthandler->std_opts;...
Platforms: *nix
License: Freeware | Size: 13.31 KB | Download (87): Getopt::Function Download |
Math::Pari is a Perl interface to PARI. SYNOPSIS use Math::Pari; $a = PARI 2; print $a**10000; or use Math::Pari qw(Mod); $a = Mod(3,5); print $a**10000; This package is a Perl interface to famous library PARI for numerical/scientific/number-theoretic calculations. It allows use of...
Platforms: *nix
License: Freeware | Size: 112.64 KB | Download (104): Math::Pari Download |
SYNOPSIS use Math::MatrixReal; use Math::MatrixReal::Aug; These are certain extra methods for Math::MatrixReal, in the tradition of Math::MatrixReal::Ext1; $matrix1->augmentright($matrix2); Creates a new matrix of the form [$matrix1 $matrix2]. $matrix1 and $matrix2 must have the same...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (101): Math::MatrixReal::Aug Download |
Math::Random::MT::Auto is a Perl module for auto-seeded Mersenne Twister PRNGs. SYNOPSIS use strict; use warnings; use Math::Random::MT::Auto qw(rand irand shuffle gaussian), /dev/urandom => 256, random_org; # Functional interface my $die_roll = 1 + int(rand(6)); my $coin_flip =...
Platforms: *nix
License: Freeware | Size: 122.88 KB | Download (98): Math::Random::MT::Auto Download |
Math::Polynomial::Solve is a Perl module to find the roots of polynomial equations. SYNOPSIS use Math::Complex; # The roots may be complex numbers. use Math::Polynomial::Solve qw(poly_roots); my @x = poly_roots(@coefficients); or use Math::Complex; # The roots may be complex numbers....
Platforms: *nix
License: Freeware | Size: 15.36 KB | Download (110): Math::Polynomial::Solve Download |
Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. SYNOPSIS my $guildercalc = Math::Calc::Euro->new(NLG) print $guildercalc->to_euro(1), "n"; # 0.45378... print $guildercalc->from_national(1), "n"; # same print $guildercalc->to_national(1), "n"; # 2.20371...
Platforms: *nix
License: Freeware | Size: 2.05 KB | Download (91): Math::Calc::Euro Download |
Math::Fraction is a Perl module to manipulate exact fractions. SYNOPSIS use Math::Fraction; $a = frac(1,2); $b = frac(6,7); print "$a + $b = ", $a + $b, "$a * $b = ", $a * $b; print $a->num;.
Platforms: *nix
License: Freeware | Size: 16.38 KB | Download (95): Math::Fraction Download |
Math::Logic::Predicate is a Perl module to manage and query a predicate assertion database. SYNOPSIS use Math::Logic::Predicate; $db = new Math::Logic::Predicate; # Enter some predicates into the database $db->add(<
Platforms: *nix
License: Freeware | Size: 17.41 KB | Download (93): Math::Logic::Predicate Download |
Math::Logic is a Perl module that provides pure 2, 3 or multi-value logic. SYNOPSIS use Math::Logic qw( $TRUE $FALSE $UNDEF $STR_TRUE $STR_FALSE $STR_UNDEF ) ; # 1 0 -1 TRUE FALSE UNDEF use Math::Logic :NUM ; # $TRUE $FALSE $UNDEF -- what you normally want use Math::Logic :ALL ; # All...
Platforms: *nix
License: Freeware | Size: 12.29 KB | Download (103): Math::Logic Download |
Math::String module contains arbitrary sized integers having arbitrary charsets to calculate with key rooms. SYNOPSIS use Math::String; use Math::String::Charset; $a = new Math::String cafebabe; # default a-z $b = new Math::String deadbeef; # a-z print $a + $b; # Math::String "" $a =...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (92): Math::String Download |
Math::Symbolic is a Perl module for symbolic calculations. SYNOPSIS use Math::Symbolic; my $tree = Math::Symbolic->parse_from_string(1/2 * m * v^2); # Now do symbolic calculations with $tree. # ... like deriving it... my ($sub) = Math::Symbolic::Compiler->compile_to_sub($tree); my...
Platforms: *nix
License: Freeware | Size: 102.4 KB | Download (96): Math::Symbolic Download |
Geo::Inverse is a Perl module to calculate geographic distance from a lat & lon pair. SYNOPSIS use Geo::Inverse; my $obj = Geo::Inverse->new(); # default "WGS84" my ($lat1,$lon1,$lat2,$lon2)=(38.87, -77.05, 38.95, -77.23); my ($faz, $baz, $dist)=$obj->inverse($lat1,$lon1,$lat2,$lon2);...
Platforms: *nix
License: Freeware | Size: 4.1 KB | Download (152): Geo::Inverse Download |
Math::Roman contains arbitrary sized Roman numbers and conversion from and to Arabic. SYNOPSIS use Math::Roman qw(roman); $a = new Math::Roman MCMLXXIII; # 1973 $b = roman(MCMLXI); # 1961 print $a - $b,"n"; # prints XII $d = Math::Roman->bzero(); # $d++; # I $d += 1998; # MCMXCIX $d...
Platforms: *nix
License: Freeware | Size: 10.24 KB | Download (145): Math::Roman Download |
Math::Algebra::Symbols is a Symbolic Algebra in Pure Perl. SYNOPSIS Example symbols.pl #!perl -w -I.. use Math::Algebra::Symbols hyper=>1; use Test::Simple tests=>5; ($n, $x, $y) = symbols(qw(n x y)); $a += ($x**8 - 1)/($x-1); $b += sin($x)**2 + cos($x)**2; $c += (sin($n*$x) +...
Platforms: *nix
License: Freeware | Size: 102.4 KB | Download (156): Math::Algebra::Symbols Download |
Math::Zap::Triangle2 - triangles in 2D space. Synopsis Example t/triangle2.t #_ Triangle ___________________________________________________________ # Test 2d triangles # philiprbrenan@yahoo.com, 2004, Perl License #______________________________________________________________________...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (89): Math::Zap::Triangle2 Download |
Math::Zap::Triangle module can build triangles in 3D space. Synopsis Example t/triangle.t #_ Triangle ___________________________________________________________ # Test 3d triangles # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (114): Math::Zap::Triangle Download |
Math::Zap::Matrix is a Perl module for 3*3 matrix manipulation. Synopsis Example t/matrix.t #_ Matrix _____________________________________________________________ # Test 3*3 matrices # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (183): Math::Zap::Matrix Download |
Math::Zap::Matrix2 is a Perl module for 2*2 matrix manipulation. Synopsis Example t/matrix2.t #_ Matrix _____________________________________________________________ # Test 2*2 matrices # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (90): Math::Zap::Matrix2 Download |