Package calculator.atoms
package calculator.atoms
-
ClassDescriptionAtom abstract class An Atom represents a number (or an operand of operations).Enumeration of possible atom (number) typesComplex Number type is used to represent complex e.g. 3 + 2iException that will be used when an a cast for one Atom to another isn't possible e.g. complex to integer castIntegerAtom is a concrete class that represents arithmetic (integer) numbers, which are Atoms, a special kind of Expressions, just like operations are.Rationnal Number type is used to represent fractions e.g. 1/2Real is a concrete class that represents arithmetic (Real) numbers, which are Atoms, a special kind of Expressions.