You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Alex Herbert (Jira)" <ji...@apache.org> on 2022/10/14 11:21:00 UTC

[jira] [Updated] (NUMBERS-27) In Complex, replace hand-coded hypot with Java.lang.Math.hypot

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

Alex Herbert updated NUMBERS-27:
--------------------------------
    Component/s: complex

> 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
>          Components: complex
>            Reporter: Eric Barnhill
>            Priority: Trivial
>             Fix For: 1.0-beta1
>
>
> 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
(v8.20.10#820010)