public class Options
extends java.lang.Object
Modulus->n
is an option which could be used for an integer
n
in a function like
Factor(polynomial, Modulus->2)
.Constructor and Description |
---|
Options(ISymbol symbol,
IAST currentOptionsList,
int startIndex,
EvalEngine engine)
Construct special Options used in evaluation of function symbols
(i.e.
|
Options(ISymbol symbol,
IExpr optionExpr,
EvalEngine engine)
Construct Options used in evaluation of function symbols (i.e.
|
Modifier and Type | Method and Description |
---|---|
edu.jas.poly.TermOrder |
getMonomialOrder(IAST ast,
edu.jas.poly.TermOrder defaultTermOrder) |
static edu.jas.poly.TermOrder |
getMonomialOrder(java.lang.String orderStr,
edu.jas.poly.TermOrder defaultTermOrder) |
IExpr |
getOption(ISymbol option) |
IExpr |
getOption(java.lang.String optionString)
Get the option from the internal options list.
|
boolean |
isOption(java.lang.String optionString)
Get the option from the internal options list and check if it's
true or false . |
IAST |
replaceAll(IAST options) |
public Options(ISymbol symbol, IAST currentOptionsList, int startIndex, EvalEngine engine)
Modulus->n
is an option which could be used for an
integer n
in a function like
Factor(polynomial, Modulus->2)
.symbol
- the options symbol for determining "default option
values"currentOptionsList
- the AST where the option could be defined starting at position
startIndex
startIndex
- the index from which tolook for options defined in
currentOptionsList
public Options(ISymbol symbol, IExpr optionExpr, EvalEngine engine)
Modulus->n
is an option which could be used for an
integer n
in a function like
Factor(polynomial, Modulus->2)
.symbol
- the options symbol for determining "default option
values"optionExpr
- the value which should be defined for the optionpublic boolean isOption(java.lang.String optionString)
true
or false
.optionString
- the option stringtrue
if the option is set to True
or
false
otherwise.public IExpr getOption(java.lang.String optionString)
optionString
- the option stringF.NIL
if the option is not
availablepublic edu.jas.poly.TermOrder getMonomialOrder(IAST ast, edu.jas.poly.TermOrder defaultTermOrder)
public static edu.jas.poly.TermOrder getMonomialOrder(java.lang.String orderStr, edu.jas.poly.TermOrder defaultTermOrder)