jhplot.math.exp4j.shuntingyard
Class ShuntingYard
- java.lang.Object
-
- jhplot.math.exp4j.shuntingyard.ShuntingYard
-
public class ShuntingYard extends java.lang.ObjectShunting yard implementation to convert infix to reverse polish notation
-
-
Constructor Summary
Constructors Constructor and Description ShuntingYard()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method and Description static Token[]convertToRPN(java.lang.String expression, java.util.Map<java.lang.String,Function> userFunctions, java.util.Map<java.lang.String,Operator> userOperators, java.util.Set<java.lang.String> variableNames)Convert a Set of tokens from infix to reverse polish notation
-
-
-
Method Detail
-
convertToRPN
public static Token[] convertToRPN(java.lang.String expression, java.util.Map<java.lang.String,Function> userFunctions, java.util.Map<java.lang.String,Operator> userOperators, java.util.Set<java.lang.String> variableNames)
Convert a Set of tokens from infix to reverse polish notation- Parameters:
expression- the expression to convertuserFunctions- the custom functions useduserOperators- the custom operators usedvariableNames- the variable names used in the expression- Returns:
- a
Tokenarray containing the result
-
-
DMelt 3.0 © DataMelt by jWork.ORG