commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MATH-1043) MathUtils.sum() method to add together a bunch of numbers.
Date Fri, 18 Oct 2013 10:48:44 GMT

    [ https://issues.apache.org/jira/browse/MATH-1043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13798994#comment-13798994
] 

Gilles commented on MATH-1043:
------------------------------

bq. What I doubt is that any potential new user will add a dependency to commons-math for
a feature like this.

That is for the original reporter to decide.
Taking the size argument backwards, adding this utility method will not have a significant
impact on the JAR.


> MathUtils.sum() method to add together a bunch of numbers.
> ----------------------------------------------------------
>
>                 Key: MATH-1043
>                 URL: https://issues.apache.org/jira/browse/MATH-1043
>             Project: Commons Math
>          Issue Type: New Feature
>         Environment: Any
>            Reporter: Matt Bishop
>            Priority: Minor
>
> I find myself doing sums frequently with a variety of numbers. It would be nice if MathUtils
had a method like this:
>     int add(int... numbers);



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message