Number Math Tricks
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 (116): Math::Polynomial::Solve 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 (101): Math::Fraction Download |
Number::Encode is a Perl module to encode bit strings into digit strings. SYNOPSIS use Number::Encode qw(nonuniform uniform); Provides a mechanism to convert arbitrary bit-strings into numeric digit strings. The transformation can be uniform or non-uniform depending on the type of...
Platforms: *nix
License: Freeware | Size: 2.05 KB | Download (107): Number::Encode 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 (99): 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 (104): 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 (98): 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 (102): Math::Symbolic 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 (151): 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 (115): 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 (189): 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 |
Math::Zap::Rectangle is a Perl module that generates rectangles in 3d space. Synopsis Example t/rectangle.t #_ Rectangle __________________________________________________________ # Test 3d rectangles # philiprbrenan@yahoo.com, 2004, Perl License...
Platforms: *nix
License: Freeware | Size: 63.49 KB | Download (98): Math::Zap::Rectangle Download |
Math::TotalBuilder::Common is a Perl module with common unit sets for building totals. SYNOPSIS use Math::TotalBuilder; use Math::TotalBuilder::Common; # units for 952 pence my %tender = build($Math::TotalBuilder::Common::uk_money_old, 952); This package is just a set of common sets of...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (93): Math::TotalBuilder::Common Download |
Math Objects is a math template library written in C++ using generic programming techniques. In order to use the "Math Objects" library, the user only has to include the header files he needs (e.g. Matrix.h, Polynomial.h etc.). In order to compile the library the user needs an ISO/IEC...
Platforms: *nix
License: Freeware | Size: 286.72 KB | Download (92): Math Objects Download |
Number::Latin is a Perl module that can convert to/from the number system "a,b,...z,aa,ab..." SYNOPSIS use Number::Latin; print join( , map int2latin($_), 1 .. 30), "n"; # # Prints: # a b c d e f g h i j k l m n o p q r s t u v w x y z aa ab ac ad Some applications, notably the...
Platforms: *nix
License: Freeware | Size: 5.12 KB | Download (103): Number::Latin Download |
Math::Symbolic::MiscAlgebra contains miscellaneous algebra routines like det(). SYNOPSIS use Math::Symbolic qw/:all/; use Math::Symbolic::MiscAlgebra qw/:all/; # not loaded by Math::Symbolic @matrix = ([x*y, z*x, y*z],[x, z, z],[x, x, y]); $det = det @matrix; @vector = (x, y, z);...
Platforms: *nix
License: Freeware | Size: 102.4 KB | Download (126): Math::Symbolic::MiscAlgebra Download |
Math::String::Charset::Nested is a charset for Math::String objects. SYNOPSIS use Math::String::Charset; # construct a charset from bigram table, and an initial set (containing # valid start-characters) # Note: After an a, either an b, c or a can follow, in this order # After an d only...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (94): Math::String::Charset::Nested Download |
Math::String::Charset is a simple charset for Math::String objects. SYNOPSIS use Math::String::Charset; $a = new Math::String::Charset; # default a-z $b = new Math::String::Charset [a..z]; # same $c = new Math::String::Charset { start => [a..z], sep => }; # with between chars print...
Platforms: *nix
License: Freeware | Size: 61.44 KB | Download (94): Math::String::Charset Download |