Luc Maisonobe created MATH-945:
----------------------------------
Summary: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira