Use the FastMath class included in jafama.