org.matheclipse.core.reflection.system
Class PolynomialQ
- java.lang.Object
-
- org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
-
- org.matheclipse.core.reflection.system.PolynomialQ
-
- All Implemented Interfaces:
- IFunctionEvaluator, BiPredicate<IExpr>, IEvaluator
public class PolynomialQ extends AbstractFunctionEvaluator implements BiPredicate<IExpr>
ReturnsTrue, if the given expression is a polynoomial object
-
-
Constructor Summary
Constructors Constructor and Description PolynomialQ()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanapply(IExpr firstArg, IExpr secondArg)Applies this Predicate to the given objects.IExprevaluate(IAST ast)ReturnsTrueif the given expression is a polynoomial object;Falseotherwisestatic booleanpolynomialQ(IExpr polnomialExpr, IAST variables)voidsetUp(ISymbol symbol)Evaluate built-in rules and define Attributes for a function.-
Methods inherited from class org.matheclipse.core.eval.interfaces.AbstractFunctionEvaluator
createRuleFromMethod, getPeriodicParts, getPureImaginaryPart, getRuleAST, isNegativeExpression, numericEval
-
-
-
-
Method Detail
-
evaluate
public IExpr evaluate(IAST ast)
ReturnsTrueif the given expression is a polynoomial object;Falseotherwise- 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
-
setUp
public void setUp(ISymbol symbol)
Description copied from class:AbstractFunctionEvaluatorEvaluate built-in rules and define Attributes for a function.- Specified by:
setUpin interfaceIEvaluator- Overrides:
setUpin classAbstractFunctionEvaluator- Parameters:
symbol- the symbol which should be set up
-
apply
public boolean apply(IExpr firstArg, IExpr secondArg)
Description copied from interface:BiPredicateApplies this Predicate to the given objects.- Specified by:
applyin interfaceBiPredicate<IExpr>- Returns:
- the value of this Predicate when applied to input
t1andt2.
-
-
DMelt 3.0 © DataMelt by jWork.ORG