Commit graph

39 commits

Author SHA1 Message Date
Jay Belanger
c8722a9799 * calc/calc-comb.el (math-prime-test): Don't assume large integers are
represented by lists.

* doc/misc/calc.el (Data Type Formats): Don't specify the size at
  which integers begin to be represented by lists.
2013-10-16 22:37:05 -05:00
Paul Eggert
ab422c4d68 Update copyright notices for 2013. 2013-01-01 09:11:05 +00:00
Paul Eggert
0e23ef9dde Better seed support for (random).
* doc/lispref/numbers.texi (Random Numbers): Document new behavior of
the calls (random) and (random STRING).
* etc/NEWS: Document new behavior of (random), (random "string").
* lisp/play/5x5.el, lisp/play/animate.el, lisp/play/cookie1.el:
* lisp/play/dissociate.el, lisp/play/doctor.el, lisp/play/dunnet.el:
* lisp/play/gomoku.el, lisp/play/landmark.el, lisp/play/mpuz.el:
* lisp/play/tetris.el, lisp/play/zone.el:
* lisp/calc/calc-comb.el (math-init-random-base):
* lisp/play/blackbox.el (bb-init-board):
* lisp/play/life.el (life):
* lisp/server.el (server-use-tcp):
* lisp/type-break.el (type-break):
Remove unnecessary call to (random t).
* lisp/net/sasl.el (sasl-unique-id-function):
Change (random t) to (random), now that the latter is more random.
* lisp/play/life.el (life-initialized): Remove no-longer-needed var.
* lisp/gnus/gnus-sync.el (gnus-sync-lesync-setup):
* lisp/gnus/message.el (message-canlock-generate, message-unique-id):
Change (random t) to (random), now that the latter is more random.
* lisp/org/org-id.el (org-id-uuid):
Change (random t) to (random), now that the latter is more random.
* src/emacs.c (main): Call init_random.
* src/fns.c (Frandom): Set the seed from a string argument, if given.
Remove long-obsolete Gentzel cruft.
* src/lisp.h, src/sysdep.c (seed_random): Now takes address and size, not long.
(init_random): New function.
2012-08-31 18:04:26 -07:00
Glenn Morris
acaf905b11 Add 2012 to FSF copyright years for Emacs files 2012-01-05 01:46:05 -08:00
Glenn Morris
73b0cd5003 Convert consecutive FSF copyright years to ranges. 2011-01-24 20:08:28 -08:00
Glenn Morris
0d9f702fd0 Nuke arch-tags. 2011-01-15 15:16:57 -08:00
Glenn Morris
5df4f04cd3 Add 2011 to FSF/AIST copyright years. 2011-01-02 15:50:46 -08:00
Glenn Morris
114f9c9679 Add 2010 to copyright years. 2010-01-13 00:35:10 -08:00
Glenn Morris
ae940284fa Add 2009 to copyright years. 2009-01-05 03:18:22 +00:00
Glenn Morris
662c9c64ae Switch to recommended form of GPLv3 permissions notice. 2008-05-06 03:16:00 +00:00
Stefan Monnier
cbee283dd7 Fix up comment convention on the arch-tag lines. 2008-04-10 14:10:46 +00:00
Miles Bader
59ce725a3b Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
2008-01-08 20:46:54 +00:00
Glenn Morris
8b72699e88 Add 2008 to copyright years. 2008-01-07 01:14:52 +00:00
Jay Belanger
2aad2a8401 (math-small-factorial-table): Remove `eval-when-compile's. 2007-08-17 20:19:11 +00:00
Miles Bader
9aecacd08a Merge from emacs--rel--22
Patches applied:

 * emacs--rel--22  (patch 70-73)

   - Update from CVS

2007-07-25  Glenn Morris  <rgm@gnu.org>

   * Relicense all FSF files to GPLv3 or later.

Revision: emacs@sv.gnu.org/emacs--devo--0--patch-828
2007-07-26 05:28:10 +00:00
Glenn Morris
075969b476 Switch license to GPLv3 or later. 2007-07-25 03:51:22 +00:00
Jay Belanger
4b4b19bdd5 (math-small-factorial-table,math-init-random-base,math-prime-test):
Remove unnecessary calls to `math-read-number-simple'.
2007-07-07 23:56:56 +00:00
Jay Belanger
e4ebbf4941 (math-random-digit): Rename to `math-random-three-digit-number'.
(math-random-digits): Don't depend on representation of integers.
2007-07-06 02:06:30 +00:00
Jay Belanger
aa9f275176 (math-small-factorial-table): Replace list by vector. 2007-07-04 04:36:04 +00:00
Jay Belanger
40cddce8bd (math-init-random-base,math-prime-test): Use math-read-number-simple
to insert constants.
(math-prime-test): Redo calculation of sum.
2007-06-24 14:30:14 +00:00
Jay Belanger
206be3d94c (math-small-factorial-table): Eval when compile. 2007-06-22 06:04:45 +00:00
Jay Belanger
887fc3b8cc (math-small-factorial-table): New variable.
(calcFunc-fact): Use `math-small-factorial-table'.
2007-06-22 01:13:01 +00:00
Jay Belanger
e8fff8ed68 Update maintainer's address. 2007-04-23 21:30:42 +00:00
Glenn Morris
7c671b23f3 Change form of license text to match rest of Emacs. 2007-03-19 20:59:53 +00:00
Glenn Morris
f0fa15c5e5 Add 2007 to copyright years. 2007-01-21 02:48:43 +00:00
Jay Belanger
09ea57eaca Update copyright year. 2006-02-05 16:31:42 +00:00
Jay Belanger
58ba2f8f07 Update copyright information. 2005-07-14 20:05:30 +00:00
Thien-Thi Nguyen
f8fc52569f Update years in copyright notice; nfc. 2005-05-17 19:08:39 +00:00
Jay Belanger
a42e94cac5 Update copyright year. 2005-05-07 21:22:51 +00:00
Jay Belanger
a59a16878f (math-random-last): Declare it.
(math-random-digit): Undo last change.  Don't make math-random-last local.
(var-RandSeed): Don't initially bind it.
(math-init-random-base, math-random-digit): Check to see if
var-RandSeed is bound.
2004-12-17 05:26:18 +00:00
Jay Belanger
2d3da38b67 (math-random-digit): Call math-init-random-base if var-RandSeed is nil. 2004-12-16 22:56:08 +00:00
Jay Belanger
43f34cccca Add a provide statement.
(calc-Need-calc-comb): Remove it.
2004-11-30 17:02:55 +00:00
Jay Belanger
8d7498c1ff (math-prime-factors-finished): Declared it as a variable.
(calcFunc-dfac):  Replaced max by n.

(math-stirling-local-cache):  New variable.
(math-stirling-number, math-stirling-1, math-stirling-2):  Replaced
the variable `cache' by the declared variable math-stirling-local-cache.

(var-RandSeed):  Declared it.
(math-init-random-base, math-random-digit):  Don't check to see if
var-RandSeed is bound.

(math-random-cache, math-gaussian-cache, calc-verbose-nextprime):
Declared them instead of just setting them.

(math-init-random-base):  Made i a local variable.

(math-random-digit):  Made math-random-last a local variable.

(math-prime-test-cache):  Moved declaration to before it is used.

(math-prime-test-cache-k, math-prime-test-cache-q,
math-prime-test-cache-nm1, math-prime-factors-finished):  Declared
them as variables.
2004-11-11 20:59:02 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Juanma Barranquero
a1506d2977 Trailing whitepace deleted. 2003-02-04 13:24:35 +00:00
Deepak Goel
6e1c888ad0 Add new maintainer (deego). 2003-01-15 15:16:25 +00:00
Colin Walters
3132f345bc Change all toplevel setq' forms to defvar' forms, and move them
before their first use.  Use `when', `unless'.  Remove trailing
periods from error forms.  Add description and headers suggested by
Emacs Lisp coding conventions.
2001-11-19 07:44:56 +00:00
Colin Walters
bf77c646a5 Style cleanup; don't put closing parens on their
own line, add "foo.el ends here" to each file, and update
copyright date.
2001-11-14 09:09:09 +00:00
Eli Zaretskii
136211a997 Initial import of Calc 2.02f. 2001-11-06 18:59:06 +00:00