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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply(RealNumber number) Applies the function to the given input element x and returns its corresponding output elementstatic RealNumbercalculate(RealNumber number) Calculates theRealNumberthat is the absolute value of the givenRealNumberMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.zfcj.math.set.Function
aRb
-
Constructor Details
-
RealAbsoluteValue
public RealAbsoluteValue()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.FunctionApplies the function to the given input element x and returns its corresponding output element- Specified by:
applyin interfaceorg.zfcj.math.set.Function<RealNumber,RealNumber>
-
calculate
Calculates theRealNumberthat is the absolute value of the givenRealNumber- Parameters:
number- the number- Returns:
- the number's absolute value
-