Class RealSubtraction

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

public class RealSubtraction extends Object implements org.zfcj.math.set.BinaryOperator<RealNumber>
A BinaryOperator that subtracts one RealNumber from another and returns their difference
  • Constructor Details

    • RealSubtraction

      public RealSubtraction()
  • Method Details

    • apply

      public RealNumber apply(RealNumber r, RealNumber s)
      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:
      r - an element of the first set
      s - an element of the second set
    • calculate

      public static RealNumber calculate(RealNumber minuend, RealNumber subtrahend)
      Calculates the difference of subtracting the given RealNumbers
      Parameters:
      minuend - the first number
      subtrahend - the second number
      Returns:
      the difference of the given real numbers