commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <>
Subject [jira] [Commented] (MATH-657) Division by zero
Date Sat, 03 Sep 2011 09:30:09 GMT


Gilles commented on MATH-657:

I've just posted a mail on "dev".

IMO, the main argument is consistency. Also with how reals (i.e. {{double}}) work; IIUC, MATH-164
triggered a change for that same reason.

Arne Plöse is a user and [reported|MATH-620] that the previous behaviour was not fine for

I don't think that this one change can have a discernible performance impact.
It might not be necessary to map all {{Complex}} instances that have an infinite component
to a single object. I pointed it as a convenient justification for fixing a bug (and for not
fixing the other two points reported by Arne in MATH-620).

> Division by zero
> ----------------
>                 Key: MATH-657
>                 URL:
>             Project: Commons Math
>          Issue Type: Bug
>            Reporter: Gilles
>            Assignee: Gilles
>            Priority: Minor
>             Fix For: 3.0
> In class {{Complex}}, division by zero always returns NaN. I think that it should return
NaN only when the numerator is also {{ZERO}}, otherwise the result should be {{INF}}. See

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message