1. Axel Kramer
  2. symja_android_library


Clone wiki

symja_android_library / doc / CreateNewFunction

Create new Symja constants or functions

The Symja constants are implemented in the package:

The Symja functions are implemented in the packages:

Builtin functions must implement the interface ICoreFunctionEvaluator and evaluate the arguments in a non standard way.

System functions must implement the interface IFunctionEvaluator and are evaluated according to the assigned function symbol attributes defined in the IFunctionEvaluator#setUp() method. A lot of system functions have associated pattern matching rule files in the folder:

These rules are converted by the class org.matheclipse.core.preprocessor.RulePreprocessor into the package org.matheclipse.core.reflection.system.rules

A new function name should be added to org.matheclipse.core.convert.AST2Expr#FUNCTION_STRINGS String[] array, with a leading uppercase character in its name.