Class RealModulo

java.lang.Object
org.zfcj.math.numbers.RealModulo
All Implemented Interfaces:
org.zfcj.math.set.BiFunction<RealNumber,RealNumber,RealNumber>, org.zfcj.math.set.BinaryOperator<RealNumber>

public class RealModulo extends Object implements org.zfcj.math.set.BinaryOperator<RealNumber>
A BinaryOperator that computes the modulo of one RealNumber by another
  • Constructor Details

    • RealModulo

      public RealModulo()
  • Method Details

    • apply

      public RealNumber apply(RealNumber t, RealNumber u)
      Description copied from interface: org.zfcj.math.set.BiFunction
      Applies the function to the given input elements t and u and returns the corresponding output element
      Specified by:
      apply in interface org.zfcj.math.set.BiFunction<RealNumber,RealNumber,RealNumber>
      Parameters:
      t - an element of the first set
      u - an element of the second set
    • calculate

      public static RealNumber calculate(RealNumber dividend, RealNumber divisor)
      Calculates the modulo of the given RealNumbers
      Parameters:
      dividend - the dividend
      divisor - the divisor
      Returns:
      the remainder of dividing the dividend by the divisor