An extension for the Java Math library