Package org.mariuszgromada.math.mxparser
Interface FunctionExtension
-
- All Superinterfaces:
Serializable
public interface FunctionExtension extends Serializable
FunctionExtension 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.2.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
Buy me a cup of coffee via donation
or support me purchasing the license via ORDER Page , or INFIMA online store
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description double
calculate()
Actual algorithm implementation.FunctionExtension
clone()
Cloning in case of usage in Expression with recursive statements.String
getParameterName(int parameterIndex)
Gets parameter nameint
getParametersNumber()
Gets parameters number.void
setParameterValue(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()
-
-