Class DivideOp

  • All Implemented Interfaces:
    Named

    public class DivideOp
    extends ArithOp
    Implement the Scheme standard function "/".
    • Constructor Detail

      • DivideOp

        public DivideOp​(java.lang.String name,
                        int op)
    • Method Detail

      • getRoundingMode

        public int getRoundingMode()
        Return one of FLOOR, CEILING, TRUNCATE, ROUND, or 0 if not applicable. These are defined in gnu.math.Numeric.
      • applyN

        public java.lang.Object applyN​(java.lang.Object[] args)
                                throws java.lang.Throwable
        Overrides:
        applyN in class Procedure
        Throws:
        java.lang.Throwable
      • apply2

        public java.lang.Object apply2​(java.lang.Object arg1,
                                       java.lang.Object arg2)
                                throws java.lang.Throwable
        Overrides:
        apply2 in class Procedure
        Throws:
        java.lang.Throwable
      • numArgs

        public int numArgs()
        Description copied from class: Procedure
        Return minArgs()|(maxArgs<<12). We use a single virtual function to reduce the number of methods in the system, as well as the number of virtual method table entries. We shift by 12 so the number can normally be represented using a sipush instruction, without requiring a constant pool entry.
        Overrides:
        numArgs in class Procedure