For CMUCL, (expt 2 x) fails at "most-positive-fixnum" and a little
before that.
In CMUCL "most-positive-fixnum" is "2^29".
So apply the following patch?
- Qian
--- a/src/lisp/fricas-lisp.lisp
+++ b/src/lisp/fricas-lisp.lisp
@@ -28,6 +28,7 @@
(defun set-initial-parameters()
(setq debug:*debug-print-length* 1024)
(setq debug:*debug-print-level* 1024)
+ (setq extensions:*intexp-maximum-exponent* most-positive-fixnum)
(setf *read-default-float-format* 'double-float))
#-:sbcl
On 10/19/23 07:40, Waldek Hebisch wrote:
Which value do you suggest to use instead?
Largest that works, say 2^29 or similar. FriCAS may easily
produce numbers having millions of digits, longer calculations
of this sort take way too much time, but same are doable and
final result may be reasonably small. To compute GCD of
univariate polynomials FriCAS encodes them in numbers and
computes GCD of corresponding numbers (this is called heugcd).
So any limit on size of numbers is also limit on size of
univariate polynomials.
Using GMP number of machine words in a single number is
(or at least used to be) bounded by what fits into 32-bit
integer.
--
You received this message because you are subscribed to the Google Groups "FriCAS -
computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/e23fc215-cc06-47a6-a767-113d592b3431%40gmail.com.