Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.079.539 Times

BigInteger 1.0

  Date Added: April 13, 2010  |  Visits: 1.933

BigInteger

Report Broken Link
Printer Friendly Version


Product Homepage
Download (105 downloads)



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 MSB-first string. restore my $bi = restore BigInteger $data; Create a new BigInteger object from a MSB-first 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..

Requirements: No special requirements
Platforms: Linux
Keyword: B And Biginteger Libraries Mod More Efficient Than Programming R- Return
Users rating: 0/10

License: Freeware Size: 20.48 KB
USER REVIEWS
More Reviews or Write Review


BIGINTEGER RELATED
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 as---or even more efficient than---OCaml 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  
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  
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(MIME-Header, $header); $header = encode(MIME-Header, $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  
Multimedia & Graphics  -  Atmatic Clip2Net for Mac 0.4
Taking screenshots and publishing them on the Internet has never been so quick and easy as it is with Clip2Net for Mac, a Mac screen capture utility which makes the process a great deal more efficient. An essential utility for those who need to...
14.47 MB  
Multimedia & Graphics  -  Free Icon Gallery !
Free Icon Gallery contains more than 3,000 free colourful icons and icon libraries and they are all absolutely free!!!
490 KB  
Finance  -  iRuneText for Mac and Linux 2.00
iRuneText is a handy and lightweight text editor, with a more appealing interface than Notepad and also enhanced with more features. Runecats is jam packed with lots of new goodies such as, case changeing which can change you text to higher or...
1024 KB  
Development Tools  -  Bidirectional Branch and Bound Minimum Singular Value Solver (V2) 1.0
B3MSV Bidirectional Branch and Bound(B3) subset selection using the the Minimum Singular Value (MSV) as the criterion.Consider the following subset selection problem:Given a tall (m x n, m>n) matrix, A, to find n rows of A such that the resulted n...
10 KB  
Libraries  -  C Minimal Perfect Hashing Library 0.6
C Minimal Perfect Hashing Library encapsulates the newest and more efficient algorithms in an easy-to-use, production-quality, fast API. The library was designed to work with big entries that cannot fit in the main memory. It has been used...
327.68 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
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 cpp-alike 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