[
https://issues.apache.org/jira/browse/NUMBERS-143?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Alex Herbert resolved NUMBERS-143.
----------------------------------
Fix Version/s: 1.0
Resolution: Implemented
Implemented custom hypot function in commit
643e1693b7ba06aa3cc524fb8b83a983a62a6227
> Investigate Math.hypot for computing the absolute of a complex number
> ---------------------------------------------------------------------
>
> Key: NUMBERS-143
> URL: https://issues.apache.org/jira/browse/NUMBERS-143
> Project: Commons Numbers
> Issue Type: Task
> Components: complex
> Reporter: Alex Herbert
> Priority: Minor
> Fix For: 1.0
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> {{Math.hypot}} computes the value {{sqrt(x^2+y^2)}} to within 1 ULP. The
> function uses the [e_hypot.c|https://www.netlib.org/fdlibm/e_hypot.c]
> implementation from the Freely Distributable Math Library (fdlibm).
> Pre-java 9 this function used JNI to call an external implementation. The
> performance was slow. Java 9 ported the function to native java (see
> [JDK-7130085 : Port fdlibm hypot to
> Java|https://bugs.java.com/bugdatabase/view_bug.do?bug_id=7130085]).
> This function is used to define the absolute value of a complex number. It is
> also used in sqrt() and log(). This ticket is to investigate the performance
> and accuracy of \{{Math.hypot}} against alternatives for use in Complex.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)