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 GeneralFunctionclone()Returns a clone of thisGeneralFunctionBinaryFunctiongetInstance(GeneralFunction function1, GeneralFunction function2)Returns an instance of thisGeneralFunction, using the correct subclassprotected intoperate(int first, int second)Performs the operation of this function on the inputsGeneralFunctionsimplify()Returns thisGeneralFunction, simplifiedOutputFunctiontoOutputFunction()Converts this function into anOutputFunctionfor use in string conversionStringtoString()Returns a String representation of thisGeneralFunctionMethods inherited from class BinaryFunction
compareSelf, equalsFunction, getFunction1, getFunction2, hashCode, iterator, simplifyFOC, substituteAllMethods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Constructor Details
-
IntegerQuotient
Constructs a new IntegerDivision- Parameters:
function1- The firstGeneralFunctionin the binary operationfunction2- The secondGeneralFunctionin the binary operation
-
-
Method Details
-
getInstance
Description copied from class:BinaryFunctionReturns an instance of thisGeneralFunction, using the correct subclass- Specified by:
getInstancein classBinaryFunction- Parameters:
function1- Constructor parameter 1function2- Constructor parameter 2- Returns:
- an instance of this
GeneralFunction
-
toString
public String toString()Description copied from class:GeneralFunctionReturns a String representation of thisGeneralFunction- Specified by:
toStringin classGeneralFunction- Returns:
- String representation of this function
-
clone
Description copied from class:GeneralFunctionReturns a clone of thisGeneralFunction- Specified by:
clonein classGeneralFunction- Returns:
- a clone of this function
-
simplify
Description copied from interface:SimplifiableReturns thisGeneralFunction, simplified- Returns:
- the simplified function
-
operate
protected int operate(int first, int second)Description copied from class:IntegerBinaryFunctionPerforms the operation of this function on the inputs- Specified by:
operatein classIntegerBinaryFunction- Parameters:
first- the first inputsecond- the second input- Returns:
- the operation applied to the inputs
-
toOutputFunction
Description copied from interface:OutputableConverts this function into anOutputFunctionfor use in string conversion- Specified by:
toOutputFunctionin interfaceOutputable- Overrides:
toOutputFunctionin classBinaryFunction- Returns:
- this function as an
OutputFunction
-