Hi all,

I have encountered some missing functions that are easy to fix in
[math]. I've done it on my local copy but would like your opinion before
committing them.

There are no function to raise a double to an int argument. There are
similar functions to raise an int, a long or a BigDecimal, but not
double. I have added one and arbitrarily choose to put it in FastMath.

There are no function to compute Stirling numbers of the second kind
(they are used in some combinatorial problems, and also appear in some
high order derivatives). I have added one in ArithmeticUtils, with some
lazy evaluation and caching to avoid recomputing them all the time, as
we often need only the smaller ones.

The function to compute binomial coefficients in ArithmeticUtils does
not cache its results. This could be easily added for the smallest
coefficients (I've done that for Striling number as explained in the
paragraph above).

What do you think about these additions?

Luc

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

Reply via email to