Category Archives: Math

Implementing non-integer Factorial and Gamma function for BigDecimal

Introduction This article describes how the factorial and Gamma functions for non-integer arguments where implemented for the big-math library. For an introduction into the Gamma function see Wikipedia: Gamma Function Attempt to use Euler’s definition as an infinite product Euler’s … Continue reading

Posted in Development, Java, Math | Leave a comment

Release 2.0.0 of big-math library supports now complex numbers

The easter week-end was the perfect time to polish and release version 2.0.0 of the big-math library. The class BigComplex represents complex numbers in the form (a + bi). It follows the design of BigComplex with some convenience improvements like … Continue reading

Posted in Development, Java, Math | Leave a comment

Adaptive precision in Newton’s Method

This describes a way to improve the performance of a BigDecimal based implementation of Newton’s Method by adapting the precision for every iteration to the maximum precision that is actually possible at this step. As showcase I have picked the … Continue reading

Posted in Development, Java, Math | Leave a comment

BigDecimalMath

Java 8 is out and there are still no Math functions for BigDecimal. After playing around with some implementations to calculate Pi I decided to write some implementation of BigDecimalMath to fill this gap. The result of this is available … Continue reading

Posted in Development, Java, Math | Tagged , , , , , , , | 8 Comments

Bernoulli Numbers

As part of the ongoing development of the BigRational and BigDecimalMath classes I needed to implement a method to calculate the Bernoulli numbers. Since I had a hard time to find a reference list of the Bernoulli numbers I will … Continue reading

Posted in Development, Math | Leave a comment