Package functions.binary.integer
Class IntegerQuotient
Object
GeneralFunction
BinaryFunction
IntegerBinaryFunction
IntegerQuotient
- All Implemented Interfaces:
Differentiable
,Evaluable
,Outputable
,Simplifiable
,Comparable<GeneralFunction>
,Iterable<GeneralFunction>
public class IntegerQuotient extends IntegerBinaryFunction
-
Field Summary
-
Constructor Summary
Constructors Constructor Description IntegerQuotient(GeneralFunction function1, GeneralFunction function2)
Constructs a new IntegerDivision -
Method Summary
Modifier and Type Method Description GeneralFunction
clone()
Returns a clone of thisGeneralFunction
BinaryFunction
getInstance(GeneralFunction function1, GeneralFunction function2)
Returns an instance of thisGeneralFunction
, using the correct subclassprotected int
operate(int first, int second)
Performs the operation of this function on the inputsGeneralFunction
simplify()
Returns thisGeneralFunction
, simplifiedOutputFunction
toOutputFunction()
Converts this function into anOutputFunction
for use in string conversionString
toString()
Returns a String representation of thisGeneralFunction
Methods inherited from class BinaryFunction
compareSelf, equalsFunction, getFunction1, getFunction2, hashCode, iterator, simplifyFOC, substituteAll
Methods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Constructor Details
-
IntegerQuotient
Constructs a new IntegerDivision- Parameters:
function1
- The firstGeneralFunction
in the binary operationfunction2
- The secondGeneralFunction
in the binary operation
-
-
Method Details
-
getInstance
Description copied from class:BinaryFunction
Returns an instance of thisGeneralFunction
, using the correct subclass- Specified by:
getInstance
in classBinaryFunction
- Parameters:
function1
- Constructor parameter 1function2
- Constructor parameter 2- Returns:
- an instance of this
GeneralFunction
-
toString
public String toString()Description copied from class:GeneralFunction
Returns a String representation of thisGeneralFunction
- Specified by:
toString
in classGeneralFunction
- Returns:
- String representation of this function
-
clone
Description copied from class:GeneralFunction
Returns a clone of thisGeneralFunction
- Specified by:
clone
in classGeneralFunction
- Returns:
- a clone of this function
-
simplify
Description copied from interface:Simplifiable
Returns thisGeneralFunction
, simplified- Returns:
- the simplified function
-
operate
protected int operate(int first, int second)Description copied from class:IntegerBinaryFunction
Performs the operation of this function on the inputs- Specified by:
operate
in classIntegerBinaryFunction
- Parameters:
first
- the first inputsecond
- the second input- Returns:
- the operation applied to the inputs
-
toOutputFunction
Description copied from interface:Outputable
Converts this function into anOutputFunction
for use in string conversion- Specified by:
toOutputFunction
in interfaceOutputable
- Overrides:
toOutputFunction
in classBinaryFunction
- Returns:
- this function as an
OutputFunction
-