BigInteger 1.0 
Date Added: April 13, 2010  Visits: 1.033 


BigInteger is an arbitrary length integer extension module for Perl. SYNOPSIS use Math::BigInteger; The BigInteger extension module gives access to Eric Youngs bignum library. This provides a faster alternative to the Math::BigInt library. The basic object in this library is a BigInteger. It is used to hold a single large integer. It is not intended that this package be used directly, but instead be used by a wrapper package, such as the Math::BigInteger class. FUNCTIONS Many of the following functions can be used in two styles, by calling the function on an object, or by calling the function explicitly; for example, here are two ways of assigning to $a the sum of $b and $c: $a>add($b, $c); or BigInteger::add($a, $b, $c); Creation/Destruction routines. new my $bi = new BigInteger; # Create a new BigInteger object. clone my $b = $a>clone(); Create a new BigInteger object from another BigInteger object. copy copy($a, $b); Copy one BigInteger object to another. save my $data = $bi>save(); Save a BigInteger object as a MSBfirst string. restore my $bi = restore BigInteger $data; Create a new BigInteger object from a MSBfirst string. Comparison functions ucmp ucmp($a, $b); Return 1 if $a is less than $b, 0 if $a and $b are the same and 1 is $a is greater than $b. This is an unsigned comparison. cmp cmp($a, $b); Return 1 if $a is less than $b, 0 if $a and $b are the same and 1 is $a is greater than $b. This is a signed comparison. Arithmetic Functions inc $bi>inc(); Increment $bi by one: dec $bi>dec(); Decrement $bi by one: add $r>add($a, $b); Add $a and $b and return the result in $r. mul $r>mul($a, $b); Multiply $a by $b and return the result in $r. Note that $r must not be the same object as $a or $b. div div($dv, $rem, $m, $d); Divide $m by $d and return the result in $dv and the remainder in $rem. Either of $dv or $rem can be undef, in which case that value is not returned. mod $rem>mod($m, $d); Find the remainder of $m divided by $d and return it in $rem. This function is more efficient than div. lshift $r>lshift($a, $n); Shift $a left by $n bits. lshift1 $r>lshift1($a); Shift $a left by 1 bit. This form is more efficient than lshift($r, $a, 1). rshift $r>rshift($a, $n); Shift $a right by $n bits. rshift1 $r>rshift1($a); Shift $a right by 1 bit. This form is more efficient than rshift($r, $a, 1). mod_exp $r>mod_exp($a, $p, $mod); Raise $a to the $p power and return the remainder into $r when divided by $m. modmul_recip modmul_recip($r, $x, $y, $m, $i, $nb); This function is used to perform an efficient mod_mul operation. If one is going to repeatedly perform mod_mul with the same modulus is worth calculating the reciprocal of the modulus and then using this function. This operation uses the fact that a/b == a*r where r is the reciprocal of b. On modern computers multiplication is very fast and big number division is very slow. $x is multiplied by $y and then divided by $m and the remainder is returned in $r. $i is the reciprocal of $m and $nb is the number of bits as returned from reciprocal. This function is used in mod_exp. mul_mod $r>mul_mod($a, $b, $m); Multiply $a by $b and return the remainder into $r when divided by $m. reciprical $r>reciprical($m); Return the reciprocal of $m into $r. Miscellaneous Routines num_bits my $size = $bi>numbits(); Return the size (in bits) of the BigInteger. gcd $r>gcd($a, $b); $r has the greatest common divisor of $a and $b. inverse_modn $r>inverse_modn($a, $n); This function creates a new BigInteger and returns it in $r. This number is the inverse mod $n of $a. By this it is meant that the returned value $r satisfies (a*r)%n == 1. This function is used in the generation of RSA keys..

License: Freeware  Size: 20.48 KB 
Programming

The MinCaml Compiler 0.1.0.1
MinCaml: An educational compiler from a tiny ML subset to the SPARC or PowerPC assembly language; Only 2000 lines of Objective Caml, but almost as efficient asor even more efficient thanOCaml and GCC! 
567.87 KB  
Utilities

Lumifi 1.1
Lumifi is a tool to help you discover more relevant information quickly so your research process is easier and more efficient than ever. What's new in this version: * search sessions can remain active while Dashboard is hidden * fixes Flash... 
778.24 KB  
Medical

ChargeMD 14
NOTICE: This product requires a subscription. ChargeMD provides authorized users of AlertMD products to view your census on your mobile device and enter charges in 7seconds or less! Using our product has been declared as more efficient... 
18.9 MB  
Modules

Admin Bar ID Menu 0.3
There are times that you need to know the ID number of a page or post in WordPress and it can be more painful than it should be to find that number. This plugin does one simple thing: it displays the ID number of the page, post, category, or tag... 
20.48 KB  
Finance

CFL Savings 1.0
Our CFL Savings Calculator will show you how much money you can save by switching from incandescent light bulbs to CFLs (compact fluorescent bulbs). CFLs cost more to purchase, but they are up to four times more efficient than incandescent... 
409.6 KB  
Medical

LADD DDS 4.2.0
LADD Dental is providing their patients with an iTunes app to make their dental and/or orthodontic experience more convenient than ever before. The LADD DDS app allows patients to get treatment instructions, GPS navigation to the office and... 
5.4 MB  
Games

Pirate Treasure 1.1.0.0
Pirate Treasure is a puzzle game filled with legendary riches and ancient treasures. Gather more fortune than any pirate in their lifetime. New in Version 1.1  New theme: The Far East  30 new levels  New music for World 2 ... 
22 MB  
Entertainment

The Flags Quiz 1.0.0.0
You see flags of countries time and time again some more regular than others but can you name the country for which the flag belongs to ? See if you can guess all of them in this fun App for your Windows Phone. Getting stuck ? No problem... 
3 MB  
Libraries

Encode::MIME::Header 2.23
Encode::MIME::Header is a Perl module that contains MIME B and Q header encoding. SYNOPSIS use Encode qw/encode decode/; $utf8 = decode(MIMEHeader, $header); $header = encode(MIMEHeader, $utf8); ABSTRACT This module implements RFC 2047... 
1.9 MB  
Web Browser Tools

ImTranslator 3.2
ImTranslator is a Firefox extension that provides additional multilingual capabilities to Firefox for more efficient communication in foreign languages. With ImTranslator you can enter multilingual text, check it for correctness, adjust... 
20.48 KB 
Programming

FLEXdb Digital Asset Manager 3.0.9
FLEXdb  an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEXdb has a JSP client, Java app server for file input and output and an EJB metadata... 
21.57 MB  
Programming

Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom ICR8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based.... 
20.48 KB  
Programming

dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and... 
327.68 KB  
Programming

Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations. 
471.04 KB  
Programming

libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems. 
143.36 KB  
Libraries

wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments  primarily because of its small size, speed, and feature set. It is commonly used in standard operating... 
2.73 MB  
Libraries

EuGTK 4.8.9
Makes it easy to develop good looking, fast, crossplatform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straightforward syntax. EuGTK allows programming in a clean, objectoriented... 
10.68 MB  
Libraries

Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable. 
5.35 KB  
Libraries

Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse>new( join("", ) ); $info = $parser>required;... 
8.19 KB  
Libraries

sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cppalike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... 
10.24 KB 