commons-issues mailing list archives

Site index · List index
Message view
Top
From Sébastien Brisard (Issue Comment Edited) (JIRA) <j...@apache.org>
Subject [jira] [Issue Comment Edited] (MATH-689) Breaking up "MathUtils"
Date Thu, 13 Oct 2011 05:31:11 GMT
```
[ https://issues.apache.org/jira/browse/MATH-689?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13125618#comment-13125618
]

Sébastien Brisard edited comment on MATH-689 at 10/13/11 5:30 AM:
------------------------------------------------------------------

{{ArithmeticsUtils}} TODO list
(/) {{addAndCheck(int x, int y)}}: done in rev r1182213
(/) {{addAndCheck(long a, long b)}}: done in rev r1182213
(/) {{binomialCoefficient(int n, int k)}}: done in rev r1182658
(/) {{binomialCoefficientDouble(int n, int k)}}: done in rev r1182658
(/) {{binomialCoefficientLog(int n, int k)}}: done in rev r1182658
(/) {{factorial(int n)}}: done in rev r1182213
(/) {{factorialDouble(int n)}}: done in rev r1182213
(/) {{factorialLog(int n)}}: done in rev r1182213
(/) {{gcd(int p, int q)}}: done in rev r1182213
(/) {{gcd(long p, long q)}}: done in rev r1182213
(/) {{lcm(int a, int b)}}: done in rev r1182658
(/) {{lcm(long a, long b)}}: done in rev r1182658
(/) {{mulAndCheck(int x, int y)}}: done in rev r1182658
(/) {{mulAndCheck(long a, long b)}}: done in rev r1182658
(/) {{subAndCheck(int x, int y)}}: done in rev r1182213
(/) {{subAndCheck(long a, long b)}}: done in rev r1182213

was (Author: celestin):
{{ArithmeticsUtils}} TODO list
(/) {{addAndCheck(int x, int y)}}: done in rev r1182213
(/) {{addAndCheck(long a, long b)}}: done in rev r1182213
(x) {{binomialCoefficient(int n, int k)}}
(x) {{binomialCoefficientDouble(int n, int k)}}
(x) {{binomialCoefficientLog(int n, int k)}}
(/) {{factorial(int n)}}: done in rev r1182213
(/) {{factorialDouble(int n)}}: done in rev r1182213
(/) {{factorialLog(int n)}}: done in rev r1182213
(/) {{gcd(int p, int q)}}: done in rev r1182213
(/) {{gcd(long p, long q)}}: done in rev r1182213
(x) {{lcm(int a, int b)}}
(x) {{lcm(long a, long b)}}
(x) {{mulAndCheck(int x, int y)}}
(x) {{mulAndCheck(long a, long b)}}
(/) {{subAndCheck(int x, int y)}}: done in rev r1182213
(/) {{subAndCheck(long a, long b)}}: done in rev r1182213

> Breaking up "MathUtils"
> -----------------------
>
>                 Key: MATH-689
>                 URL: https://issues.apache.org/jira/browse/MATH-689
>             Project: Commons Math
>            Reporter: Gilles
>            Priority: Trivial
>              Labels: api-change
>             Fix For: 3.0
>
>
> Issue related to this [proposal|http://www.mail-archive.com/dev@commons.apache.org/msg25617.html].
> There seemed to be a global agreement on the following break-up:
> *  Arithmetics (for "addAndCheck", "factorial", "gcd", ...)
> *  Precision (for "equals", "compare", ...)
> *  Binomial (for "binomialCoefficient")
> *  MathArrays (for "linearCombination", "distance", "safeNorm", "sortInPlace", "copyOf",
...)
> I think that "ordinary" mathematical functions ("pow", "cosh", ...) should go into "FastMath"