Deutsch   English   Français   Italiano  
<20240525151925.756@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.lang.awk
Subject: Re: Operator precedence
Date: Sat, 25 May 2024 22:20:42 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 25
Message-ID: <20240525151925.756@kylheku.com>
References: <v2nium$1pl8f$1@dont-email.me> <20240523092856.646@kylheku.com>
 <87sey8movv.fsf@axel-reichert.de> <20240523203557.409@kylheku.com>
 <874jamm9lc.fsf@axel-reichert.de>
Injection-Date: Sun, 26 May 2024 00:20:43 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="058c0fa05b6b3793bcde5f0cd05a6280";
	logging-data="3227800"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX19RwPZ87ORNLkKkUQrSuqBHqFs6Q8n+msI="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:jXloL+IrJkF1ARrzW6OrBOzO+uk=
Bytes: 1802

On 2024-05-25, Axel Reichert <mail@axel-reichert.de> wrote:
> Kaz Kylheku <643-408-1753@kylheku.com> writes:
>
>> in the left associative semantics, we have a choice. We can do the
>> exponentation earnestly as if by:
>>
>>   (expt (expt 5 2) 3)
>>
>> Or we can take advantage of the identity:
>>
>>   (expt 5 (* 2 3))
>>
>> The former could be important in some situation involving
>> floating-point: you can't always use simplifying identities.
>
> I cannot readily imagine a scenario in which simplifying is not possible
> or is disadvantageous. Could you please elaborate?

I'm simply not enough of a numerical analyst to be able to rule such a
situation as nonexistent.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca