Class RationalMultiplication

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

public class RationalMultiplication extends Object implements org.zfcj.math.set.BinaryOperator<RationalNumber>
A BinaryOperator that multiplies two RealNumbers and returns the product
  • Constructor Details

    • RationalMultiplication

      public RationalMultiplication()
  • Method Details

    • apply

      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<RationalNumber,RationalNumber,RationalNumber>
      Parameters:
      r - an element of the first set
      s - an element of the second set
    • calculate

      public static RationalNumber calculate(RationalNumber r, RationalNumber s)
      Calculates the product of multiplication of the given RationalNumber factors
      Parameters:
      r - the first factor
      s - the second factor
      Returns:
      the product of the given numbers