commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "DI COSTANZO (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MATH-682) Pascal triangle
Date Mon, 03 Oct 2011 14:30:35 GMT

     [ https://issues.apache.org/jira/browse/MATH-682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

DI COSTANZO updated MATH-682:
-----------------------------

    Attachment: PascalTriangle.java
                PascalTriangleTest.java

I agree with you. It could be important to prevent too large entries. 
In the files newly added, I add a static variable defining the maximum order at which a row
can be computed (arbitrary set at 50). If the entry is superior to this maximum value, another
method is called and only compute the individual row. The user can arbitrary call any one
of the method.
I updated the previous test class.
                
> Pascal triangle 
> ----------------
>
>                 Key: MATH-682
>                 URL: https://issues.apache.org/jira/browse/MATH-682
>             Project: Commons Math
>          Issue Type: New Feature
>    Affects Versions: 3.0
>         Environment: All
>            Reporter: DI COSTANZO
>            Priority: Trivial
>         Attachments: PascalTriangle.java, PascalTriangle.java, PascalTriangle.java, PascalTriangleTest.java,
PascalTriangleTest.java
>
>
> Create a method to get Pascal's triangle coefficient. This method could be implemented
in MathUtils, in a static way, with the following signature :
> double[] getTriangleCoefficient(final int order)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message