[
https://issues.apache.org/jira/browse/MATH-682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sébastien Brisard updated MATH-682:
-----------------------------------
Attachment: PascalTriangle.java
Please find attached what I have for the moment. It needs some polishing to
meet the CM standards, I believe. Also, it is based on JScience, which has both
concepts of Field (like CM, but less convenient, I think) and Variable (which
allowed me to have a method to expand binomials. As this feature is absent from
CM, this would probably go).
Previously computed lines are indeed cached.
Please let me know if you think it's a good start.
As for me, I need this class to work with FieldElement, but if this is
far-fetched for CM, then I'm happy keeping this feature for the specific use I
have.
> 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
>
>
> 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