Lib-GMP calculator!
Lib-GMP (The GNU Multiple Precision Arithmetic Library) is among the most
powerful C/C++ tools available. It allows someone to manipulate variables
on a computer limited only by the amount of physical memory located on the
machine. For more information on Lib-GMP, check out:
http://gmplib.org/
The following is an example of Lib-GMP manipulation power of integers.
Enter an integer expression in the field below. The expression may
include +, -, *, /, %, ^ (exponentiation), and ! (factorial), the n-ary
functions `gcd', `lcm', `and', `ior', `xor', `mul', `plus', the binary
functions `minus', `div', `mod', `rem', and the unary function `popc'
(population count). Most functions may also be used in infix form. All
constants must be integers.
An example of a valid expression is:
1 + gcd(87324,78263148,7896) * (10^1989879887 mod 471!) + (23456789 mod ((32003-1)/2))
These computations are running on a machine with the
following specs:
Four 2400MHz Intel Intel(R) Xeon(R) CPU X3430 @ 2.40GHz Processors, 1015M RAM, 19198.07 Bogomips Total
running:
Linux Version 2.6.39.4-smp, Compiled #1 SMP Sun Nov 6 06:55:15 MST 2011
If you want to know how to do things such as this with GMP, take a
look at demos/pexpr.c in the GMP distribution, the program used
to compute these expressions.