Since you do not specify, is this a math problem, a problem translating the math into java, or both? If it is a math problem, I'd encourage a quick google search as there are hundreds if not...