[ 
https://issues.apache.org/jira/browse/MATH-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096621#comment-13096621
 ] 

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 him.

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: https://issues.apache.org/jira/browse/MATH-657
>             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 
> [here|http://en.wikipedia.org/wiki/Riemann_sphere#Arithmetic_operations].

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to