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 GeneralFunction
classForm()
Returns this representation of factorial in the form of a composition of other raw classesstatic Factorial
defaultFactorial(GeneralFunction input)
Returns aFactorial
of theSettings.defaultFactorial
typeString
toString()
Returns a String representation of thisGeneralFunction
Methods inherited from class UnitaryFunction
clone, compareSelf, equalsFunction, getInstance, hashCode, iterator, newInstanceOf, simplify, simplifyFOC, simplifyInternal, simplifyInverse, substituteAll, toOutputFunction
Methods 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 aFactorial
of theSettings.defaultFactorial
type- Parameters:
input
- TheUnitaryFunction.operand
of the newFactorial
- Returns:
- a
Factorial
of theSettings.defaultFactorial
type
-
toString
public String toString()Description copied from class:GeneralFunction
Returns a String representation of thisGeneralFunction
- Overrides:
toString
in classUnitaryFunction
- Returns:
- String representation of this function
-