Is there a way to define an operator?
Issue #164
resolved
I want to define an operator as nPr
and nCr
for permutation and combination in Casio calculator. Can you give me a guide?
Comments (2)
-
repo owner -
repo owner - changed status to resolved
Please use the Github issue tracker to open a new issue if this issue shouldn't be closed Github issues
- Log in to comment
In org.matheclipse.core.convert.AST2Expr.java you can add new "alias" strings to
ALIASES_STRINGS
andALIASES_SUBSTITUTES
. For example theDiff
name could be used as alias for theD
function name.New operators are defined in the org.matheclipse.core.parser.ExprParserFactory and in the org.matheclipse.parser.client.operator.ASTNodeFactory.
The second factory is independent from the Symja expression structure and parses only to a simply node form but not into a fullblown
IExpr
structure.