You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2003/06/01 09:49:17 UTC

DO NOT REPLY [Bug 20390] New: - [math] Adding MathUtils class, including binomial coefficients, factorials

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20390>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20390

[math] Adding MathUtils class, including binomial coefficients, factorials

           Summary: [math] Adding MathUtils class, including binomial
                    coefficients, factorials
           Product: Commons
           Version: Nightly Builds
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Sandbox
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: phil@steitz.com


I am attaching source for a new utility class, org.apache.commons.math.MathUtils
to house useful formulas, extending those that java.lang.Math provides.  Initial
contents are binomial coefficient and factorial methods.  For each of these,
three methods are provided, returning  

   * value as a long
   * value as a double
   * log of the value as a double

Limits on actual parameters for the first two (full value representations) are
specified in the javadoc.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org