Depends on what you're trying to write. Most of the math isn't associated with Java itself, but actually with computer science in general and what it is you're trying to write (for example, a CAS...