Package calculator.atoms


package calculator.atoms
  • Class
    Description
    Atom abstract class An Atom represents a number (or an operand of operations).
    Enumeration of possible atom (number) types
    Complex Number type is used to represent complex e.g. 3 + 2i
    Exception that will be used when an a cast for one Atom to another isn't possible e.g. complex to integer cast
    IntegerAtom 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/2
    Real is a concrete class that represents arithmetic (Real) numbers, which are Atoms, a special kind of Expressions.