Class RealAbsoluteValue

java.lang.Object
org.zfcj.math.numbers.RealAbsoluteValue
All Implemented Interfaces:
org.zfcj.math.set.Function<RealNumber,RealNumber>, org.zfcj.math.set.relation.BinaryRelation<RealNumber,RealNumber>

public class RealAbsoluteValue extends Object implements org.zfcj.math.set.Function<RealNumber,RealNumber>
A Function that calculates the absolute value of a RealNumber
  • Constructor Details

    • RealAbsoluteValue

      public RealAbsoluteValue()
  • Method Details

    • apply

      public RealNumber apply(RealNumber number)
      Description copied from interface: org.zfcj.math.set.Function
      Applies the function to the given input element x and returns its corresponding output element
      Specified by:
      apply in interface org.zfcj.math.set.Function<RealNumber,RealNumber>
    • calculate

      public static RealNumber calculate(RealNumber number)
      Calculates the RealNumber that is the absolute value of the given RealNumber
      Parameters:
      number - the number
      Returns:
      the number's absolute value