diff options
| author | Jay Belanger | 2013-10-16 22:37:05 -0500 |
|---|---|---|
| committer | Jay Belanger | 2013-10-16 22:37:05 -0500 |
| commit | c8722a9799832942ff219f4ae881f44985c35924 (patch) | |
| tree | 531d2d7e5bc2b815906b86d5aab50aee1f7ae6df /doc | |
| parent | bb9937df2db9129cdc248532a93f406221a2f65c (diff) | |
| download | emacs-c8722a9799832942ff219f4ae881f44985c35924.tar.gz emacs-c8722a9799832942ff219f4ae881f44985c35924.zip | |
* 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.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/misc/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/misc/calc.texi | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog index a05a9f67ac4..76d3954cfcf 100644 --- a/doc/misc/ChangeLog +++ b/doc/misc/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-10-17 Jay Belanger <jay.p.belanger@gmail.com> | ||
| 2 | |||
| 3 | * calc.el (Data Type Formats): Don't specify the size at | ||
| 4 | which integers begin to be represented by lists. | ||
| 5 | |||
| 1 | 2013-10-14 Xue Fuqiao <xfq.free@gmail.com> | 6 | 2013-10-14 Xue Fuqiao <xfq.free@gmail.com> |
| 2 | 7 | ||
| 3 | * cl.texi (Argument Lists): Add indexes for &key and &aux. | 8 | * cl.texi (Argument Lists): Add indexes for &key and &aux. |
diff --git a/doc/misc/calc.texi b/doc/misc/calc.texi index b2b054ec1ea..04160eafad0 100644 --- a/doc/misc/calc.texi +++ b/doc/misc/calc.texi | |||
| @@ -33306,12 +33306,15 @@ Lisp integers. This is the only storage format for Calc data objects | |||
| 33306 | which is not a Lisp list. | 33306 | which is not a Lisp list. |
| 33307 | 33307 | ||
| 33308 | Large integers are stored as lists of the form @samp{(bigpos @var{d0} | 33308 | Large integers are stored as lists of the form @samp{(bigpos @var{d0} |
| 33309 | @var{d1} @var{d2} @dots{})} for positive integers 1000000 or more, or | 33309 | @var{d1} @var{d2} @dots{})} for sufficiently large positive integers |
| 33310 | @samp{(bigneg @var{d0} @var{d1} @var{d2} @dots{})} for negative integers | 33310 | (where ``sufficiently large'' depends on the machine), or |
| 33311 | @mathit{-1000000} or less. Each @var{d} is a base-1000 ``digit,'' a Lisp integer | 33311 | @samp{(bigneg @var{d0} @var{d1} @var{d2} @dots{})} for negative |
| 33312 | from 0 to 999. The least significant digit is @var{d0}; the last digit, | 33312 | integers. Each @var{d} is a base-@expr{10^n} ``digit'' (where again, |
| 33313 | @expr{n} depends on the machine), a Lisp integer from 0 to | ||
| 33314 | 99@dots{}9. The least significant digit is @var{d0}; the last digit, | ||
| 33313 | @var{dn}, which is always nonzero, is the most significant digit. For | 33315 | @var{dn}, which is always nonzero, is the most significant digit. For |
| 33314 | example, the integer @mathit{-12345678} is stored as @samp{(bigneg 678 345 12)}. | 33316 | example, the integer @mathit{-12345678} might be stored as |
| 33317 | @samp{(bigneg 678 345 12)}. | ||
| 33315 | 33318 | ||
| 33316 | The distinction between small and large integers is entirely hidden from | 33319 | The distinction between small and large integers is entirely hidden from |
| 33317 | the user. In @code{defmath} definitions, the Lisp predicate @code{integerp} | 33320 | the user. In @code{defmath} definitions, the Lisp predicate @code{integerp} |