Re: +-Inf and NaN

Stavros Macrakis <[email protected]> Fri, 23 Feb 2024 09:55:37 -0500
Newsgroups gmane.comp.mathematics.maxima.general,gmane.lisp.gcl.devel
Message-ID <CACLVabUb5jxf2p98F_mb+qXybUgvCyV68X4QnH4qPY0wzYOZoQ@mail.gmail.com>
On Thu, Feb 22, 2024 at 3:45 PM Camm Maguire <[email protected]> wrote:

> >  >  If NaN was truly 'not a number', the numerical functions would
> trigger
> >  >  an error on input only when compiled with safety, and might be
> arranged
> >
> > Don't agree. If you're doing a calculation with more than one result,
> > it is perfectly reasonable for some of the results to be NaNs and
> > other results to be valid. Aborting the calculation is not the right
> > thing to do.
>
> Just curious, do you think a lisp function taking several numerical
> arguments and returning several numerical values should not trigger an
> error when passed a symbol as argument, presuming that some of the
> returned values might still be correctly computed?
>

No, NaN, despite its name, is still of type float. A weird float, but a
float nonetheless.

         -s

_______________________________________________
Maxima-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/maxima-discuss