MCPcopy Create free account
hub / github.com/Aghajari/MathParser / addConst

Method addConst

MathParser/src/com/aghajari/math/MathParser.java:747–751  ·  view source on GitHub ↗

Adds a const variable to #innerVariables;

(String name, double value)

Source from the content-addressed store, hash-verified

745 * Adds a const variable to {@link #innerVariables};
746 */
747 private void addConst(String name, double value) {
748 // variables can update the default constants
749 //removeVariable(name);
750 innerVariables.add(new MathVariable(name, value));
751 }
752
753 /**
754 * Returns the instance of {@link MathVariable} if the variable exists

Callers 1

initDefaultVariablesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected