help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: The next exercise


From: Emanuel Berg
Subject: Re: The next exercise
Date: Fri, 09 Dec 2022 22:27:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Michael Heerdegen wrote:

>> M-: (expt 1001 1000) RET
>
> Wow, Tomas and Gregory, thanks for the hint - I had
> forgotten that even "normal" Emacs Lisp can do it
> exactly. Wonderful.
>
> (substring (number-to-string (expt 10001 10000)) 0 4) is too
> much, however (Arithmetic overflow error).

What is this then

(defalias '** #'expt)

(1- (** 2 (* 8 (** (** 2 10) 4))))

It's an arithmetic overflow error!

But what does it express?

Hint: Start with (** 2 10) ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

[Prev in Thread] Current Thread [Next in Thread]