home *** CD-ROM | disk | FTP | other *** search
- Big Number Calculator
-
- Big Numbers is really just a desktop frontend for Nick Craig-Wood's NumCalc
- program which uses his Numbers module.
-
- To use the routines type in a calculation as you would in BASIC eg. 48^34
- or (235+45^12)^243
-
- The numbers printed out get as big as you like though very big numbers take
- a while to work out and tie up the desktop for a minute or two.
-
- Anything under 10 000 digits should be pretty quick though.
-
- ---------------------------------------------------------------------------
- The following are Nick Craig-Wood's instructions from the original program.
- ---------------------------------------------------------------------------
-
- This is a infinite precision integer calculation program.
-
- Enter your expression in normal infix notation
-
- You may use the following operators (in priority order)
-
- -a (unary minus), a! (factorial)
- a^b (a to the power of b)
- a*b, a/b, a%b (a modulo b)
- a+b, a-b
-
- And the following functions
-
- rnd(a) produces a random number from 0 to a-1
- probablyprime(a) returns 0 if a is composite, or 1 if a is prime with a
- probability of >=0.75
- gcd(a,b) returns the greatest common divisor of a and b
- smallfactor(a) returns a small factor of a, or 0
- sqr(a) returns the square root of a
- powmod(a,b,c) computes (a^b) % c using a quick method
- base(a) sets the base for calculations to a 2-36
-
- A to Z may be used as variables, and @ is the result of the last calculation
- done. Case ignored. Decimal => Base 10.
-
- Examples of valid usage
-
- 2^64-1"
- a=z*gcd(rnd(10^100),rnd(10^100))
- Q=@*123/W^2 - w%b - (139+1234)*(123^2)
- Pressing return repeats the last calculation.
- * commands may be used.
-
- ---------------------------------------------------------------------------
-