[
https://issues.apache.org/jira/browse/MATH-657?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13096457#comment-13096457
]
Gilles commented on MATH-657:
-----------------------------
{{divide}} methods fixed in revision 1164756.
However, the change leads to a bug in {{atan}}: See test method
{{testAtanI()}}, at line 575 in "ComplexTest.java".
> 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