A C-coded Python extension module that wraps the GMP library to provide to Python code fast multiprecision arithmetic (integer, rational, and float), random number generation, advanced number-theoretical functions, and more.
The primerange project is an attempt to generate 'mostly' primes for numbers having 10->20 decimal digits, by using algebraic and non-algebraic techniques.
Its usefulness for much larger numbers, has not currently been tested, and it is expected, that the phrase 'mostly' would not apply in
... [More] the case that huge integers are generated.
Utilise 'free software' computerised algebra systems Sage, and Python, and C, and GNU gmp library to provide scripts. [Less]
A C++ rational (fraction) template class
Include rational.h to be able to do fraction calculations. By simply including rational.h and specifying the storage type (any integer variant) you can create and use a fractional data type.
Features
* exchangeable GCD algorithms
* optional signed
... [More] overflow/unsigned wrap checking
* optimized for signed and unsigned types
* construction of inproper (mixed) fractions and approximated fractions
* Support for the GNU Multiple Precision Arithmetic Library and the CLN - Class Library for Numbers as underlying storage type
* Expression templates for domain specific programming [Less]
This site uses cookies to give you the best possible experience.
By using the site, you consent to our use of cookies.
For more information, please see our
Privacy Policy