Basic mathematical objects and operations in Java