Develop a lot of math fucntion for Java