home *** CD-ROM | disk | FTP | other *** search
/ The Datafile PD-CD 4 / DATAFILE_PDCD4.iso / education / numbers / !Numbers / Docs / Num_Help / Big_Nums next >
Encoding:
Text File  |  1995-05-18  |  1.8 KB  |  52 lines

  1. Big Number Calculator
  2.  
  3. Big Numbers is really just a desktop frontend for Nick Craig-Wood's NumCalc
  4. program which uses his Numbers module.
  5.  
  6. To use the routines type in a calculation as you would in BASIC eg. 48^34
  7. or  (235+45^12)^243
  8.  
  9. The numbers printed out get as big as you like though very big numbers take
  10. a while to work out and tie up the desktop for a minute or two.
  11.  
  12. Anything under 10 000 digits should be pretty quick though.
  13.  
  14. ---------------------------------------------------------------------------
  15. The following are Nick Craig-Wood's instructions from the original program.
  16. ---------------------------------------------------------------------------
  17.  
  18. This is a infinite precision integer calculation program.
  19.  
  20. Enter your expression in normal infix notation
  21.  
  22. You may use the following operators (in priority order)
  23.  
  24.   -a (unary minus), a! (factorial)
  25.   a^b (a to the power of b)
  26.   a*b, a/b, a%b (a modulo b)
  27.   a+b, a-b
  28.   
  29. And the following functions
  30.  
  31.   rnd(a)           produces a random number from 0 to a-1
  32.   probablyprime(a) returns 0 if a is composite, or 1 if a is prime with a
  33.                    probability of >=0.75
  34.   gcd(a,b)         returns the greatest common divisor of a and b
  35.   smallfactor(a)   returns a small factor of a, or 0
  36.   sqr(a)           returns the square root of a
  37.   powmod(a,b,c)    computes (a^b) % c using a quick method
  38.   base(a)          sets the base for calculations to a 2-36
  39.  
  40. A to Z may be used as variables, and @ is the result of the last calculation
  41. done.  Case ignored. Decimal => Base 10.
  42.  
  43. Examples of valid usage
  44.  
  45.  2^64-1"
  46.  a=z*gcd(rnd(10^100),rnd(10^100))
  47.  Q=@*123/W^2 - w%b - (139+1234)*(123^2)
  48. Pressing return repeats the last calculation.
  49. * commands may be used.
  50.  
  51. ---------------------------------------------------------------------------
  52.