You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gilles Sadowski (Jira)" <ji...@apache.org> on 2021/09/28 19:01:00 UTC

[jira] [Created] (MATH-1630) AccurateMath vs JDK's Math

Gilles Sadowski created MATH-1630:
-------------------------------------

             Summary: AccurateMath vs JDK's Math
                 Key: MATH-1630
                 URL: https://issues.apache.org/jira/browse/MATH-1630
             Project: Commons Math
          Issue Type: Improvement
            Reporter: Gilles Sadowski
            Assignee: Gilles Sadowski
             Fix For: 4.0


Allow runtime switch between the JDK and CM implementations of the methods defined in the [{{Math}} class|https://docs.oracle.com/javase/8/docs/api/java/lang/Math.html].

I [propose|https://markmail.org/message/uw64jproplfa4xqr] to create a {{JdkMath}} class that will store references to either JDK's methods in {{Math}} or CM's methods in {{AccurateMath}}, based on a system property.

Thus, all CM codes will be updated to call the methods declared in {{JdkMath}}.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)