[
https://issues.apache.org/jira/browse/MATH-1591?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17353364#comment-17353364
]
Gilles Sadowski commented on MATH-1591:
---------------------------------------
bq. FMA method requires extended precision computation.
A candidate for inclusion in "Commons Numbers" (which the {{FastMath}} method
would then call) in a class similar to
[ArithmeticUtils|https://gitbox.apache.org/repos/asf?p=commons-numbers.git;a=blob;f=commons-numbers-core/src/main/java/org/apache/commons/numbers/core/ArithmeticUtils.java;h=bbd82923b3c884d614431c271f449d73fe075d51;hb=HEAD]?
> Add missing methods for FastMath to bring FastMath up to JDK9 level
> -------------------------------------------------------------------
>
> Key: MATH-1591
> URL: https://issues.apache.org/jira/browse/MATH-1591
> Project: Commons Math
> Issue Type: Improvement
> Affects Versions: 4.0
> Reporter: Erik Svensson
> Priority: Major
>
> With JDK9, 6 new methods were added to java.lang.Math which do not exist in
> FastMath, which means that FastMath is not a drop-in replacement for jlM.
> I propose to add them
> The new methods are :
> fma
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#fma(double,double,double)])
> multiplyFull
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#multiplyFull(int,int)])
> multiplyHigh
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#multiplyHigh(long,long)])
> negateExact
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#negateExact(int)])
> toDegrees
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#toDegrees(double)])
> toRadians
> ([https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/Math.html#toRadians(double)])
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)