org.matheclipse.core.reflection.system
Class Factor
- java.lang.Object
-
- org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
-
- org.matheclipse.core.reflection.system.Factor
-
- All Implemented Interfaces:
- IFunctionEvaluator, IEvaluator
- Direct Known Subclasses:
- FactorSquareFree, FactorSquareFreeList
public class Factor extends AbstractFunctionEvaluator
Factor a univariate polynomial
-
-
Constructor Summary
Constructors Constructor and Description Factor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description IExprevaluate(IAST ast)Symbolic evaluation of a function.static IExprfactor(IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree)static IASTfactorComplex(IExpr expr, java.util.List<IExpr> varList, ISymbol head, boolean noGCDLCM)Factor theexprin the domain of GaussianIntegers.static IExprfactorList(IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree)static IASTfactorModulus(JASModInteger jas, ModLongRing modIntegerRing, GenPolynomial<ModLong> poly, boolean factorSquareFree)static IExprfactorWithOption(IAST ast, IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree)Factor theexprwith the option given inast.-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
createRuleFromMethod, getPeriodicParts, getPureImaginaryPart, getRuleAST, isNegativeExpression, numericEval, setUp
-
-
-
-
Method Detail
-
evaluate
public IExpr evaluate(IAST ast)
Description copied from class:AbstractFunctionEvaluatorSymbolic evaluation of a function.ast.get(0)contains the head (i.e. the function symbol) of this abstract syntax tree (AST).ast.get(1)toast.get(n)contains the first to n-th argument of the function.
If necessary use the methods from theValidateclass to check the number or types of arguments in the evaluate method.
Note: if the symbolic evaluation isn't possible or no result is found the evaluate method returns with anullvalue without throwing an exception!- Specified by:
evaluatein interfaceIFunctionEvaluator- Specified by:
evaluatein classAbstractFunctionEvaluator- Parameters:
ast- the abstract syntax tree (AST) which should be evaluated- Returns:
- the evaluated object or
null, if evaluation isn't possible - See Also:
Validate
-
factor
public static IExpr factor(IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree) throws JASConversionException
- Throws:
JASConversionException
-
factorList
public static IExpr factorList(IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree) throws JASConversionException
- Throws:
JASConversionException
-
factorWithOption
public static IExpr factorWithOption(IAST ast, IExpr expr, java.util.List<IExpr> varList, boolean factorSquareFree) throws JASConversionException
Factor theexprwith the option given inast.- Parameters:
ast-expr-varList-factorSquareFree-- Returns:
- Throws:
JASConversionException
-
factorComplex
public static IAST factorComplex(IExpr expr, java.util.List<IExpr> varList, ISymbol head, boolean noGCDLCM) throws JASConversionException
Factor theexprin the domain of GaussianIntegers.- Parameters:
expr-varList-head- the head of the result ASTnoGCDLCM-- Returns:
- Throws:
JASConversionException
-
factorModulus
public static IAST factorModulus(JASModInteger jas, ModLongRing modIntegerRing, GenPolynomial<ModLong> poly, boolean factorSquareFree)
-
-
DMelt 3.0 © DataMelt by jWork.ORG