Author Archives: admin

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

Aurora Borealis (Northern Lights) in Tromsø

To celebrate my fiftieth birthday the whole family had a great vacation in Tromsø to see the northern lights. The following videos where all taken using a wireless remote control with programmable interval. The single shots where joined using ffmpeg. … Continue reading

Posted in Photography, Timelapse | 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


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

Using GLSL to generate gas giant planets

To be completely honest, the code that is described in this blog is already more than a year old. I just wanted to catch up with the current state of my project. I will therefore try to write several blogs … Continue reading

Posted in Android, Development, GLSL, Java, LibGDX | Leave a comment

Using GLSL Shaders to generate Planets

My goal was to write a GLSL shader that would create an earth-like planet. There are lots of good introductions into GLSL shader programming. Creating a Shader with LibGDX from Xoppa Lighthouse3d – GLSL Tutorial The following example is based … Continue reading

Posted in Development, GLSL, Java, LibGDX | 1 Comment

Memory Impact of Java Collections

Sometimes it is important to know how much memory you need in order to store the data in a Java collection. Here is a little overview of the memory overhead of the most important Java collections. In some cases I … Continue reading

Posted in Development, Java | 2 Comments

Benchmarking Scala

Microbenchmarking is controversial as the following links show: Anatomy of a flawed microbenchmark Brian Goetz 2005 Java benchmarking article ellipticgroup 2009(?) How do I write a correct micro-benchmark in Java? stackoverflow 2009 Google Caliper … Nevertheless I did write a … Continue reading

Posted in Scala | Leave a comment