Package org.mariuszgromada.math.mxparser
Interface FunctionExtension
Buy me a cup of coffee via donation
or support me purchasing the license via ORDER Page , or INFIMA online store
- All Superinterfaces:
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:
Buy me a cup of coffee via donation
or support me purchasing the license via ORDER Page , or INFIMA online store
-
Method Summary
Modifier and TypeMethodDescriptiondouble
Actual algorithm implementation.clone()
Cloning in case of usage in Expression with recursive statements.getParameterName
(int parameterIndex) Gets parameter nameint
Gets parameters number.void
setParameterValue
(int parameterIndex, double parameterValue) Sets value of function parameter
-
Method Details
-
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
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:
-