commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Neidhart (JIRA)" <>
Subject [jira] [Resolved] (MATH-945) add log10 to RealFieldElement interface
Date Tue, 10 Mar 2015 21:49:41 GMT


Thomas Neidhart resolved MATH-945.
    Resolution: Fixed

Added in commit 45df5da2640f8f097915b8a2a0249ef0f6cf514e.

> add log10 to RealFieldElement interface
> ---------------------------------------
>                 Key: MATH-945
>                 URL:
>             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

View raw message