[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#42644: 28.0.50; Please let max and min accept zero arguments
From: |
Dmitry Alexandrov |
Subject: |
bug#42644: 28.0.50; Please let max and min accept zero arguments |
Date: |
Mon, 03 Aug 2020 20:11:25 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Michael Heerdegen <michael_heerdegen@web.de> wrote:
> Dmitry Alexandrov <dag@gnui.org> writes:
>
>> What reader syntax would you prefer?
>
> I'm not criticizing the current syntax for the infinities. It's just hard to
> remember them.
???
>> As for that regard, whatʼs wrong with, (/ +1.0 0) and (/ -1.0 0)?
>
> Wow, that doesn't error?
Thankfully, no. So third-parties do not have to invent another numbers, like
in some other languages:
>>> 1 / 0.0
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ZeroDivisionError: float division by zero
>>> import numpy
>>> 1 / numpy.float64(0.0)
inf
> It's hard to find a mathematical interpretation in which this makes any sense.
Dunno. It makes perfect natural sense to me. Perhaps, mathematics is too
mind-warping. :-)
Also, Iʼd better emphasised zero, not numerator, with explicit flonum notation.
I hope, writing the same thing another way would help to realise how obvious
it is:
(/ +1 0.0) ; ⇒ 1.0e+INF
signature.asc
Description: PGP signature
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Michael Heerdegen, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Stefan Kangas, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Mattias Engdegård, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Andy Moreton, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Drew Adams, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Michael Heerdegen, 2020/08/01
- bug#42644: 28.0.50; Please let max and min accept zero arguments, Dmitry Alexandrov, 2020/08/02