Package functions.unitary.integer.combo
Class Factorial
Object
- All Implemented Interfaces:
Differentiable,Evaluable,Outputable,Simplifiable,Comparable<GeneralFunction>,Iterable<GeneralFunction>
- Direct Known Subclasses:
RFactorial,SFactorial
public abstract class Factorial extends IntegerUnitaryFunction
Factorial is the general class extended in all implementations of factorial. To conform with Settings, factorial should always be instantiated with defaultFactorial(GeneralFunction).-
Field Summary
-
Constructor Summary
Constructors Constructor Description Factorial(GeneralFunction operand)Constructs a newFactorial -
Method Summary
Modifier and Type Method Description abstract GeneralFunctionclassForm()Returns this representation of factorial in the form of a composition of other raw classesstatic FactorialdefaultFactorial(GeneralFunction input)Returns aFactorialof theSettings.defaultFactorialtypeStringtoString()Returns a String representation of thisGeneralFunctionMethods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, getInstance, hashCode, iterator, newInstanceOf, simplify, simplifyFOC, simplifyInternal, simplifyInverse, substituteAll, toOutputFunctionMethods inherited from class GeneralFunction
compareTo, derivativeAt, equals, equalsSimplified, getNthDerivative, getSimplifiedDerivative, substituteVariables
-
Constructor Details
-
Method Details
-
classForm
Returns this representation of factorial in the form of a composition of other raw classes- Returns:
- the representation as a composition of other raw classes
- Throws:
UnsupportedOperationException- if no such representation exists, such as in the case of recursive factorialRFactorial
-
defaultFactorial
Returns aFactorialof theSettings.defaultFactorialtype- Parameters:
input- TheUnitaryFunction.operandof the newFactorial- Returns:
- a
Factorialof theSettings.defaultFactorialtype
-
toString
public String toString()Description copied from class:GeneralFunctionReturns a String representation of thisGeneralFunction- Overrides:
toStringin classUnitaryFunction- Returns:
- String representation of this function
-