[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
Re: The next exercise, Gregory Heytings, 2022/12/09
- Re: The next exercise, Michael Heerdegen, 2022/12/09
- Re: The next exercise, tomas, 2022/12/09
- Re: The next exercise, Gregory Heytings, 2022/12/09
- Re: The next exercise, Michael Heerdegen, 2022/12/09
- Re: The next exercise,
Emanuel Berg <=
- Re: The next exercise, Michael Heerdegen, 2022/12/11
- Re: The next exercise, Emanuel Berg, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Michael Heerdegen, 2022/12/15
- Re: The next exercise, Emanuel Berg, 2022/12/17
- Re: The next exercise, Michael Heerdegen, 2022/12/17
- Re: The next exercise, Emanuel Berg, 2022/12/20
Re: The next exercise, Andy Moreton, 2022/12/11
Re: The next exercise, Michael Heerdegen, 2022/12/11