[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Maxima-discuss] +-Inf and NaN
From: |
Camm Maguire |
Subject: |
Re: [Maxima-discuss] +-Inf and NaN |
Date: |
Mon, 26 Feb 2024 09:51:25 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) |
Greetings!
Stavros Macrakis <macrakis@gmail.com> writes:
> On Fri, Feb 23, 2024 at 12:20 PM Henry Baker <hbaker1@pipeline.com> wrote:
>
> Extending data types with an NA value is pretty standard and useful,
> and not just for floats.
>
> One of these days (ha ha), we'll even get Maxima to realize that
> INF-INF does not equal 0,
>
COMPILER>(- +inf +inf)
#<-nan>
(in partial answer to my previous query on how to get a nan from non-nan
inputs....)
>
> and that not all INFs are equal.
>
Are you referring to short/long issues, or +/-? I think this is
correct:
COMPILER>(eql (exp 100000) (exp 100000))
T
COMPILER>(= (exp 100000) (exp 100000))
T
Take care,
--
Camm Maguire camm@maguirefamily.org
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah