You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Thomas Neidhart (JIRA)" <ji...@apache.org> on 2015/03/10 22:49:41 UTC

[jira] [Resolved] (MATH-945) add log10 to RealFieldElement interface

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

Thomas Neidhart resolved MATH-945.
----------------------------------
    Resolution: Fixed

Added in commit 45df5da2640f8f097915b8a2a0249ef0f6cf514e.

> add log10 to RealFieldElement interface
> ---------------------------------------
>
>                 Key: MATH-945
>                 URL: https://issues.apache.org/jira/browse/MATH-945
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.2
>            Reporter: Luc Maisonobe
>            Priority: Trivial
>             Fix For: 4.0
>
>
> When the RealFieldElement interface has been set up for 3.2, it appeared the log10 method could not be declared properly. Its return type should have been T (the parameter type for the interface), and indeed this is what Decimal64.log10() and DerivativeStructure.log10() return. However, the Dfp class already had a log10 method that returned an int and not a Dfp.
> So declaring this method at the interface level would have lead to change the return type for the Dfp.log10() method from int to Dfp, and this was an incompatible change, which could not be done in a minor release like 3.2. It had to wait until 4.0.
> Everything is already in place in the classes, with TODO comments and commented out code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)