Package org.mariuszgromada.math.mxparser
Interface FunctionExtension
-
public interface FunctionExtensionFunctionExtension provides interface for function algorithm definition. In this case algorithm definition is based on source code using JAVA (for JAVA / Android) or .NET. If implemented Function Extension object can be further used while Function object construction, which means it can extend mXparser math collection. mXparser extension with your own implementation can be achieved by implementing FunctionExtension interface, creating an FunctionExtension object, creating Function object based on FunctionExtension, adding Function object to Expression / mXparser definition.- Version:
- 5.0.0
- Author:
- Mariusz Gromada
MathParser.org - mXparser project page
mXparser on GitHub
INFIMA place to purchase a commercial MathParser.org-mXparser software license
info@mathparser.org
ScalarMath.org - a powerful math engine and math scripting language
Scalar Lite
Scalar Pro
MathSpace.pl - See Also:
Function
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description doublecalculate()Actual algorithm implementation.FunctionExtensionclone()Cloning in case of usage in Expression with recursive statements.StringgetParameterName(int parameterIndex)Gets parameter nameintgetParametersNumber()Gets parameters number.voidsetParameterValue(int parameterIndex, double parameterValue)Sets value of function parameter
-
-
-
Method Detail
-
getParametersNumber
int getParametersNumber()
Gets parameters number.- Returns:
- Returns parameters number.
-
setParameterValue
void setParameterValue(int parameterIndex, double parameterValue)Sets value of function parameter- Parameters:
parameterIndex- - parameter index (from 0 to n-1)parameterValue- - parameter value
-
getParameterName
String getParameterName(int parameterIndex)
Gets parameter name- Parameters:
parameterIndex- - parameter index (from 0 to n-1)- Returns:
- Returns parameter name
-
calculate
double calculate()
Actual algorithm implementation.- Returns:
- Function Extension value.
-
clone
FunctionExtension clone()
Cloning in case of usage in Expression with recursive statements.- Returns:
- Returns FunctionExtension object that was cloned.
- See Also:
Expression.getRecursiveMode()
-
-