commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Barnhill (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (NUMBERS-27) In Complex, replace hand-coded hypot with Java.lang.Math.hypot
Date Tue, 25 Apr 2017 22:48:04 GMT

     [ https://issues.apache.org/jira/browse/NUMBERS-27?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Eric Barnhill resolved NUMBERS-27.
----------------------------------
    Resolution: Fixed

Fix on branch hypot-test

> In Complex, replace hand-coded hypot with Java.lang.Math.hypot
> --------------------------------------------------------------
>
>                 Key: NUMBERS-27
>                 URL: https://issues.apache.org/jira/browse/NUMBERS-27
>             Project: Commons Numbers
>          Issue Type: Improvement
>            Reporter: Eric Barnhill
>            Priority: Trivial
>
> ISO C standard for Complex numbers states that the abs() must be obtained with a hypot()
function to avoid over and underflows. The function is correctly hand-coded in the current
iteration of Complex, but I see no need for this. Propose replacing with java.lang.Math.hypot
to make the code and its conformance to ISO C more easily comprehensible.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message