Class ArithOp

    • Field Detail

      • DIVIDE_GENERIC

        public static final int DIVIDE_GENERIC
        Implement's Scheme / operation.
        See Also:
        Constant Field Values
      • DIVIDE_INEXACT

        public static final int DIVIDE_INEXACT
        Implements a division operation. Like Scheme's (exact->inexact (/ x y)).
        See Also:
        Constant Field Values
      • QUOTIENT

        public static final int QUOTIENT
        Implements a quotient operation. Depends on the value of getRoundingMode(). Operands are real; result is an integer. Inexact operands yield inexact integer result.
        See Also:
        Constant Field Values
      • QUOTIENT_EXACT

        public static final int QUOTIENT_EXACT
        Implements a quotient operation. Depends on the value of getRoundingMode(). Operands and result are real. Operands are real; result is an integer. Inexact operands yield exact integer result.
        See Also:
        Constant Field Values
      • MODULO

        public static final int MODULO
        Implements a modulo/remainder operation. Depends on the value of getRoundingMode(). Operands and result are real.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ArithOp

        public ArithOp​(String name,
                       int op)
    • Method Detail

      • defaultResult

        public Object defaultResult()
      • isSideEffectFree

        public boolean isSideEffectFree()
        Description copied from class: Procedure
        True if this Procedure (definitely) has no side-effects. Note side-effect-free does not imply idempotent if this allocates an object with "identity".
        Overrides:
        isSideEffectFree in class Procedure