Path: news.eternal-september.org!eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Tim Rentsch
Newsgroups: comp.lang.c++
Subject: Re: constexpr is really very smart!
Date: Wed, 18 Dec 2024 07:42:39 -0800
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <86bjx9gfps.fsf@linuxsc.com>
References: <20241216112808.00003f74@yahoo.com> <20241216132315.00007859@yahoo.com> <86frmlgrl4.fsf@linuxsc.com> <20241218143922.00005d9e@yahoo.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Date: Wed, 18 Dec 2024 16:42:40 +0100 (CET)
Injection-Info: dont-email.me; posting-host="bbceff83978fead1ac4b0629d6983104";
logging-data="2469772"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4t5KFmdvvt3DwNVvzbch5QlNNftSjnfs="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:x8up6YmLGZpt/kBfK39kIobxNEI=
sha1:k+JhXZO/z5WEpyEx5H74e6RwH6g=
Michael S writes:
> On Wed, 18 Dec 2024 03:26:15 -0800
> Tim Rentsch wrote:
>
>> Michael S writes:
>>
>>
>>> My news reader is not sure about equation above.
>>> You probably meant ceil(pow((1+sqrt(5))/2, n)/sqrt(5))
>>> It works well with double precision math up to nu. After that it
>>> would need high precision fp library, so probably [much] slower
>>> than simple loop above at least up to n' where we run out of range
>>> of int64 result.
>>
>
> It seems like your newsreader don't like combinations of characters that
> I considered benign. Like n=75 and n=92
> In case you want to see what was an original, it is here:
> [link]
Yes, that is peculiar. I should look into that. Thank you
for bringing it to my attention.